PHP intl.so失败 [英] PHP intl.so fails
问题描述
PHP警告:PHP启动:无法加载动态库 '/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so'- dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so,9): 库未加载:/usr/local/opt/icu4c/lib/libicui18n.56.dylib
引用自: /usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so原因: 在第0行的未知"中找不到图片
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.56.dylib
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so Reason: image not found in Unknown on line 0
我曾经尝试使用PHP安装MongoDB
I recently was trying to install MongoDB for PHP, I used
brew install homebrew/php/php55-mongodb
这安装了其他要求的全部负载,现在PHP的intl.so已损坏.每当我运行composer update
时,都会出现上述错误,并且我需要intl.so的库现在断开并说它不存在.
This installed a whole load of other requirements and now intl.so for PHP is broken. I get the above error whenever I run composer update
and the libs I have that need intl.so now break and say its not present.
我认为这与问题有关,但没有提供解决方案 https://github .com/Homebrew/homebrew-php/issues/2544
I believe this is related to the issue but it offers no solution https://github.com/Homebrew/homebrew-php/issues/2544
我该如何消除这种混乱?
How can I undo this mess?
推荐答案
进行更多挖掘后,我删除了该文件,然后使用pecl安装了intl,这似乎已经奏效.我还删除了icu4c,然后重新安装了它,因为这是导致此问题的相关软件包;
After more digging I removed, then installed intl using pecl and this seems to have worked. I also removed and then reinstalled icu4c as this is a related package that causes the issue;
sudo pecl remove intl
brew unlink icu4c
brew remove icu4c
brew install icu4c
sudo pecl install intl
这篇关于PHP intl.so失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!