Symfony-composer installation program error, PDO I have installed, in the php.ini also configured, why install also reported wrong?

Source: Internet
Author: User
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/loca l/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 the package information
Updating dependencies (including Require-dev)
Your requirements could not being resolved to an installable set of packages.

Problem 1

    • The requested package Doctrine/orm (installed at v2.4.8, required as ^2.5) are 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.< /p>

    • 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 is 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 is used by PHP in CLI mode.

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

Lamp Master Please take a look at this question how to solve? I just want to install this program composer require Sonata-project/admin-bundle

Reply content:

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/loca l/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 the package information
Updating dependencies (including Require-dev)
Your requirements could not being resolved to an installable set of packages.

Problem 1

    • The requested package Doctrine/orm (installed at v2.4.8, required as ^2.5) are 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.< /p>

    • 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 is 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 is used by PHP in CLI mode.

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

Lamp Master Please take a look at this question how to solve? I just want to install this program composer require Sonata-project/admin-bundle

/etc/php.ini See if the extensions are open.

The error message is obvious:

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

Your PDO extension cannot be loaded, please re-download the PDO extension corresponding to your PHP version.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.