在brew install php56后库未加载错误 [英] Library not loaded error after brew install php56
本文介绍了在brew install php56后库未加载错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用自制软件从OSX Mavericks上的php5.5升级到php5.6.我跑
I'm upgrading from php5.5 to php5.6 on OSX Mavericks using homebrew. I run
brew install php56
一切正常,但我运行php -v
时出现以下错误
Everything runs and completes fine but when I run php -v
the following error comes up
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Trace/BPT trap: 5
我该如何解决?
推荐答案
就我而言,这是先前安装的符号链接问题.跑步后一切都很好
In my case, it was a symlink issue with the previous installation. Everything was fine after running
brew link --overwrite php56
PS .在使用--overwrite
运行之前,请尝试不使用.如果您像我一样遇到以下错误,请继续.
P.S. Before running with --overwrite
, try without. If you get the error below like I did, then go ahead.
Linking /usr/local/Cellar/php56/5.6.3...
Error: Could not symlink bin/pear
Target /usr/local/bin/pear
is a symlink belonging to php55. You can unlink it:
brew unlink php55
To force the link and overwrite all conflicting files:
brew link --overwrite php56
To list all files that would be deleted:
brew link --overwrite --dry-run php56
这篇关于在brew install php56后库未加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文