php: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib

时间:2020-09-15 03:37:52 来源:

【摘要】 php: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib考必过小编为大家整理了关于php: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib的信息,希望可以帮助到大家!

php: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib

标签:解决方法psql版本activeOWINbrewcolortryapr

mac上本来安装了php7.1版本,后来安装了node,结果再次执行php的时候,出现错误

dyld: Library not loaded: /usr/local/opt/icu4c/pb/pbicui18n.63.dypb
  Referenced from: /usr/local/opt/php@7.1/bin/php
  Reason: image not found
[1]    86657 abort      php -v

,查了一下,发现node升级了icu4c的版本到了67.1,导致php7.1使用的63版本链接库找不到

解决方法:

网上查找试了很多方法但是都不行,后来在stackoverflow上找到了解决方法,记录在此:

22


16
I was trying to start psql but got

psql: copd not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
When I used postgres -D /usr/local/var/postgres, got the following error:

dyld: Library not loaded: /usr/local/opt/icu4c/pb/pbicui18n.63.dypb
  Referenced from: /usr/local/bin/postgres
  Reason: image not found
[1]    2559 abort      postgres -D /usr/local/var/postgres
A quick search on pbicui18n.63.dypb showed me I need icu4c pb with version 63. However brew pst icu4c says I have the version 64.2.

I tried both brew install icu4c 63 & brew install icu4c@63 but no luck.

Can anyone help, please? Thanks in advance.

postgresql homebrew icu4c
share  improve this question   follow  
asked Apr 24 ‘19 at 9:00

ogirginc
2,84011 gold badge1919 silver badges3030 bronze badges
add a comment
3 Answers
Active
Oldest
Votes
 
97

Solution:

1) cd to Homebrew‘s formpa directory

cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formpa
2) Find desired commit (version 63 for icu4c) to checkout

git log --follow icu4c.rb
3) Checkout to a new branch

git checkout -b icu4c-63 e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7
4) Reinstall the pbrary with the new version

brew reinstall ./icu4c.rb
5) Switch to the reinstalled version

brew switch icu4c 63.1
6) Checkout back to master

git checkout master
Sources:

Homebrew install specific version of formpa?
http://hanxue-it.blogspot.com/2018/08/macos-homebrew-instalpng-older-version-of-software.html
Bonus for those who ended up using this more than once:

# zsh
function hiicu63() {
  local last_dir=$(pwd)

  cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formpa
  git checkout icu4c-63
  brew reinstall ./icu4c.rb
  brew switch icu4c 63.1
  git checkout master

  cd $last_dir
}

参考:

https://stackoverflow.com/questions/55826221/install-icu4c-version-63-with-homebrew

Install icu4c version 63 with Homebrew

执行npm时icu4c报错,使用brew安装旧版本icu4c,icu4c 62.1, 执行node时icu4c报错

php: dyld: Library not loaded: /usr/local/opt/icu4c/pb/pbicui18n.63.dypb

标签:解决方法psql版本activeOWINbrewcolortryapr

以上就是php: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib的内容,更多资讯请及时关注考必过网站,最新消息小编会第一时间发布,大家考试加油!

上一篇      下一篇
前端相关推荐 更多>>
PHP]php://filter之妙用 Vue常见问题解决:can't not find 'xxModule' JavaScript常见问题:Uncaught TypeError: Cannot read property JavaScript常见问题:TypeError: ‘undefined' is not an object JavaScript常见问题:TypeError: null is not an object JavaScript常见问题:TypeError: ‘undefined' is not a function JavaScript常见问题:TypeError: Cannot read property ‘length' JavaScript常见问题: Uncaught TypeError: Cannot set property
前端热点专题 更多>>
热点问答
国家公务员考试年龄限制是多少 公务员国考和省考考试内容有什么区别 函授大专学历能不能考公务员 国家公务员考试考点能自己选择吗 新闻学专业能报考2022年公务员考试吗 什么是联合培养研究生 什么是破格录取研究生 什么人不适合读研 研究生报名户口所在地填什么 研究生结业和毕业有什么区别
网站首页 网站地图 返回顶部
考必过移动版 https://m.kaobiguo.net