首页 > composer安装程序报错,PDO我已经装了,在php.ini中也配置好了,为什么安装还报错呢?

composer安装程序报错,PDO我已经装了,在php.ini中也配置好了,为什么安装还报错呢?

composer require sonata-project/admin-bundle
PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20121212
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/pdo/pdo_mysql.so' - /usr/local/php/lib/php/extensions/pdo/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
Using version ^3.4 for sonata-project/admin-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1

To enable extensions, verify that they are enabled in those .ini files:

Installation failed, reverting ./composer.json to its original content

lamp高手请看一下这个问题怎么解决?我只想安装一下这个程序 composer require sonata-project/admin-bundle


错误提示很明显了:

PHP Warning: PHP Startup: PDO: Unable to initialize module
Module compiled with module API=20121212

PHP compiled with module API=20100525
These options need to match
in Unknown on line 0

你的 PDO 扩展无法加载,请重新下载对应你的PHP版本的 PDO 扩展。


/etc/php.ini 看下扩展有没有开启

【热门文章】
【热门文章】