我正在使用linux mint 18.1。我已经更新了我的系统并重新安装了xml扩展。我也跑了:
sudo apt-get install --reinstall `dpkg -l | grep 'ii php5.6' | awk '{ printf($2" "); next}'`
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/dom.so' - /usr/local/lib/libxml2.so.2: version `LIBXML2_2.9.0' not found (required by /usr/lib/php/20131226/dom.so) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/simplexml.so' - /usr/local/lib/libxml2.so.2: version `LIBXML2_2.9.0' not found (required by /usr/lib/php/20131226/simplexml.so) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xmlreader.so' - /usr/lib/php/20131226/xmlreader.so: undefined symbol: dom_node_class_entry in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xsl.so' - /usr/local/lib/libxml2.so.2: version `LIBXML2_2.9.0' not found (required by /usr/lib/x86_64-linux-gnu/libxslt.so.1) in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit 4.6.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 4.6.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit 4.6.10 -> satisfiable by phpunit/phpunit[4.6.10].
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/5.6/cli/php.ini
- /etc/php/5.6/cli/conf.d/10-opcache.ini
它在/usr/lib/php/20131226/simplexml.so中查找simplexml.so,而不是在/usr/lib/php/5.6等文件夹中查找。
我已经在互联网上搜索但无济于事。感谢帮助!