symfony - composer安裝程式報錯,PDO我已經裝了,在php.ini中也配置好了,為什麼安裝還報錯呢?

來源:互聯網
上載者: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/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 擴充。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.