Arch-Linux
如何在archlinux中安裝php7模組?
我安裝了以下
php
版本:PHP 7.0.2 (cli) (built: Jan 6 2016 11:50:59) ( NTS ) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
命令行界面上的任何
php
命令都會引發以下錯誤:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/openssl.so' - /usr/lib/php/modules/openssl.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/posix.so' - /usr/lib/php/modules/posix.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xcache.so' - /usr/lib/php/modules/xcache.so: undefined symbol: zval_used_for_init in Unknown on line 0
我在以下位置啟用了模組
/etc/php/php.ini
:extension=openssl.so [...] extension=posix.so
xcache
以相同的方式啟用/etc/php/conf.d/xcache.ini
:extension=xcache.so xcache.size=64M xcache.var_size=64M
這是的內容
/usr/lib/php/modules
:cu.so bz2.so curl.so exif.so gd.so gmp.so intl.so mcrypt.so opcache.so pdo_pgsql.so shmop.so sockets.so sysvsem.so xcache.so zip.so bcmath.so calendar.so dba.so ftp.so gettext.so iconv.so ldap.so mysqli.so pdo_mysql.so pgsql.so soap.so sysvmsg.so sysvshm.so xmlrpc.so
我想知道,為什麼缺少模組以及如何重新安裝它們?我在模組中找不到任何
pacman
模組。archlinux wiki 也僅指取消註釋php.ini
.我正在執行 ArchLinux 核心版本 4.0.6-1-ARCH x86_64 GNU/Linux。
好的,這裡由pierre schmitz回答,感謝連結:
openssl
,phar
並且posix
模組現在內置在 php7 核心中。從您的 中刪除相應的指令php.ini
,例如;extension=openssl.so
。
php-xcache
與php7不兼容,刪除包,項目似乎死了。第 3 方包裹狀態的完整列表:
| Package | Status | Solution | |------------------|--------------|--------------------------------------------------------------| | graphviz | incompatible | remove PHP bindings | | php-apcu | compatible | update to version 5 | | php-geoip | incompatible | remove package | | php-memcache | incompatible | remove package, project seems dead | | php-memcached | incompatible | remove package, move back when upstream version is available | | php-mongo | incompatible | remove package, superseded by the mongodb driver | | php-xcache | incompatible | remove package, project seems dead | | uwsgi-plugin-php | incompatible | remove PHP support, upstream update seems possible | | xdebug | compatible | update to latest release candidate of version 2.4 |