Rumah > pembangunan bahagian belakang > tutorial php > symfony - composer安装程序报错,PDO我已经装了,在php.ini中也配置好了,为什么安装还报错呢?

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

WBOY
Lepaskan: 2016-08-04 09:21:28
asal
2190 orang telah melayarinya

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

  • The requested package doctrine/orm (installed at v2.4.8, required as ^2.5) is satisfiable by doctrine/orm[v2.4.8] but these conflict with your requirements or minimum-stability.
    Problem 2

  • doctrine/orm v2.5.4 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.3 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.2 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.1 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.0 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • Installation request for doctrine/orm ^2.5 -> satisfiable by doctrine/orm[v2.5.0, v2.5.1, v2.5.2, v2.5.3, v2.5.4].

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

  • /etc/php.ini

  • /etc/php.d/curl.ini

  • /etc/php.d/fileinfo.ini

  • /etc/php.d/json.ini

  • /etc/php.d/phar.ini

  • /etc/php.d/zip.ini
    You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

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

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

回复内容:

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

  • The requested package doctrine/orm (installed at v2.4.8, required as ^2.5) is satisfiable by doctrine/orm[v2.4.8] but these conflict with your requirements or minimum-stability.
    Problem 2

  • doctrine/orm v2.5.4 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.3 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.2 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.1 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • doctrine/orm v2.5.0 requires ext-pdo * -> the requested PHP extension pdo is missing from your system.

  • Installation request for doctrine/orm ^2.5 -> satisfiable by doctrine/orm[v2.5.0, v2.5.1, v2.5.2, v2.5.3, v2.5.4].

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

  • /etc/php.ini

  • /etc/php.d/curl.ini

  • /etc/php.d/fileinfo.ini

  • /etc/php.d/json.ini

  • /etc/php.d/phar.ini

  • /etc/php.d/zip.ini
    You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

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

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

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

错误提示很明显了:

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 扩展。

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan