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

前端 未结 27 1421
孤城傲影
孤城傲影 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:45

    In order to downgrade, i had to recompile from source (MacOS Mojave)

    $ wget https://ssl.icu-project.org/files/icu4c/62.1/icu4c-62_1-src.tgz
    $ tar xvfz icu4c-62_1-src.tgz
    $ cd icu/sources
    $ ./configure
    $ make
    $ make install
    

提交回复
热议问题