2017-05-19 127 views
4

我就跑作曲更新失敗無法打開共享對象文件:

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 

怎麼辦我修復它?

在此先感謝。

回答

1

作曲家使用php.ini/etc/php/7.0/cli/php.ini看起來像你uncoment extension_dir

只是評論,並重新加載Apache和你做到了。

1

你的php找不到dll。要解決這個問題:

  • 運行php -iLoaded Configuration File鍵值,查找php.ini位置。
  • 搜索的DLL文件PHP的無法在php.ini加載並找到自己的完整路徑
  • 更新延長密鑰充分DLL路徑

例如:

extension=<path>/php_pdo_firebird.dll 
extension=<path>/php_pdo_mysql.dll' 
extension=<path>/php_pdo_pgsql.dll: 
+0

通常在linux的擴展文件夾? –

+0

已經給完整路徑,取消註釋並重新啓動Apache,但'php -i'目錄擴展名仍然指向'。/' 有什麼不對? –

+0

什麼是您的操作系統? dll擴展名僅適用於Windows。 – napuzba

相關問題