Mac使用brew找不到php7.1


Mac使用brew找不到php7.1
[https://blog.csdn.net/weixin_44253824/article/details/104078107]

切換版本后,修復 dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib
[https://stackoverflow.com/questions/53828891/dyld-library-not-loaded-usr-local-opt-icu4c-lib-libicui18n-62-dylib-error-run]

I am actually quite surprised that this solution has not been presented yet, and I feel like it is the easiest solution.

Go to GitHub, find the version of the brewfile that matches the version of icu4c that you need and get the raw version of the file (follow the links above and click View File then Raw).

Then just have brew reinstall from that url.

For example, version 62.1:
brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/575eb4bbef683551e19f329f60456b13a558132f/Formula/icu4c.rb

安裝切換版本命令 brew install brew-php-switcher brew-php-switcher 7.2
修復切換后 dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.64.dylib brew switch icu4c 62.1 brew switch icu4c 64.2


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM