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

前端 未结 27 1338
孤城傲影
孤城傲影 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 09:57

    I had problems because my version of PHP (7.3) was expecting icu4c 63 and brew would only install 64.

    https://stackoverflow.com/a/55828190/2000947 helped me install 63.

提交回复
热议问题