gpt4 book ai didi

composer-php - Composer 更新失败无法打开共享对象文件 :

转载 作者:行者123 更新时间:2023-12-04 03:57:59 25 4
gpt4 key购买 nike

我只是跑
composer update
但我得到了这个

Failed loading ./opcache.so:  ./opcache.so: cannot open shared object file: No such file or directory
PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './calendar.so' - ./calendar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './ctype.so' - ./ctype.so: cannot open shared object file: No such file or directory in Unknown on line 0
... so on

我跑 php -i得到了这个
Loaded Configuration File => /etc/php/7.0/cli/php.ini
Scan this dir for additional .ini files => /etc/php/7.0/cli/conf.d
Additional .ini files parsed => /etc/php/7.0/cli/conf.d/10-opcache.ini,
/etc/php/7.0/cli/conf.d/10-pdo.ini,
/etc/php/7.0/cli/conf.d/20-calendar.ini,
/etc/php/7.0/cli/conf.d/20-ctype.ini,
... so on

我如何解决它?

提前致谢。

最佳答案

您的 php 找不到 dll。要解决它:

  • 运行 php -i并找到您的 php.ini位置下Loaded Configuration File key 。
  • 搜索php无法加载的dll文件并找到它们的完整路径
  • 更新您的 php.ini 中的扩展 key 到完整的 dll 路径

  • 例如:
    extension=<path>/php_pdo_firebird.dll
    extension=<path>/php_pdo_mysql.dll'
    extension=<path>/php_pdo_pgsql.dll:

    关于composer-php - Composer 更新失败无法打开共享对象文件 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44062210/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com