2014-10-18 56 views
2

我剛剛更新至優勝美地,我不斷收到此錯誤消息。優勝美地更新後出現Dr 012錯誤

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib Referenced from: /usr/local/bin/php Reason: image not found /usr/local/Cellar/drush/HEAD/libexec/drush: line 124: [: -le: unary operator expected Execute a drush command. Run drush help [command] to view command-specific help. Run drush topic to read even more documentation.

我用brew安裝了它,它是最新的,我知道的已經很久了。是否有其他人收到此錯誤消息?

回答

20

使這個步驟:

brew reinstall pcre && brew unlink pcre && brew link pcre 
brew reinstall php55 
brew link php55 
brew uninstall drush 
brew install --HEAD drush 

=它的工作原理。

+0

這工作。回覆晚了非常抱歉。 – blackbull77 2014-11-11 22:53:34

1

我剛剛嘗試運行一個簡單的php腳本時遇到了這個問題。如果您查看/ usr/local/opt/icu4c/lib /,您可能會注意到libicui18n.53.dylib不再存在,現在名爲libicui18n.54.dylib。我的猜測是PHP與舊庫libicui18n.53.dylib一起編譯,因爲它不再存在,它抱怨。 (我跑命令brew升級,它將libicu升級到版本54)

我解決這個問題的方法是通過升級我的php(然後重新編譯它)。在我的情況下,它是:

brew upgrade php55 

一旦它完成升級,錯誤不再出現,我能夠再次運行PHP腳本。

希望這可以幫助你,因爲我知道我的修復是針對我的機器的。

3
brew reinstall php55 

應該工作。對我來說。

0

我從Maverick 10.9更新到Yosemite 10.10後出現此錯誤。我解決這個問題按照這篇文章:通過Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.10 Yosemite

With Apples’ new OSX 10.10 Yosemite out of the bag, getting the AMP stack up and running on the new OSX may cause a few bumps on the upgrade from OS X Mavericks 10.9. This tutorial will go through the process on getting Apache, MySQL, PHP (or otherwise known as the ‘AMP’ stack) and phpMyAdmin running on the new Yosemite OS.

並覆蓋php5.4(小牛版):

brew link --overwrite php55 
0

對我來說沒有以上爲我工作。我終於在Github上找到了一個解決方案。

將OSX升級到Yosemite後,我遇到了同樣的問題。我一直得到以下錯誤:

Drush was not able to start (bootstrap) the Drupal database.

我認爲這是一個MySQL的問題,但對於我下面的工作:我再次編輯我~/.bash_profile,加上幾行:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 

export PATH="/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php5.4.4/bin:$PATH" 

export PATH 
export DRUSH_PHP="/Applications/MAMP/bin/php/php5.4.4/bin/php" 
export PATH=/usr/local/bin:$PATH 

重新啓動終端瞧 - 嘔吐再次像魅力一樣。 Thanks to C13L0.

0
brew uninstall php55 
brew install php55 

「brew重新安裝php55」不適合我。不知道爲什麼,但單獨輸入命令。

相關問題