composer-php – Composer Update Failed无法打开共享对象文件:

我跑了

作曲家更新

但我得到了这个

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并在Loaded Configuration File键下找到您的php.ini位置.
>搜索php无法加载的dll文件并找到它们的完整路径
>将php.ini中的扩展名更新为完整的dll路径

例如:

extension=<path>/php_pdo_firebird.dll
extension=<path>/php_pdo_mysql.dll'
extension=<path>/php_pdo_pgsql.dll:
点赞