dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac

前端 未结 27 1320
孤城傲影
孤城傲影 2020-11-27 09:02

I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error:

php -v
dyld: Library not lo         


        
相关标签:
27条回答
  • 2020-11-27 10:04

    I've tried many of the suggestions here, and at the end brew upgrade php is what did the trick for me, but seems the issue is all over the place

    0 讨论(0)
  • 2020-11-27 10:05

    Leland's answer worked for me, but I had to change steps 4 and 6 to:

    4) git checkout -B icu4c-62.1 575eb4b

    6) brew reinstall Formula/icu4c.rb

    0 讨论(0)
  • 2020-11-27 10:07

    i followed this article here and this seems to be the missing piece of the puzzle for me:

    brew uninstall node@8
    
    0 讨论(0)
提交回复
热议问题