Mac dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib

mac中使用brew安装软件启动报错

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
  Referenced from: /usr/local/Cellar/postgresql/10.5/bin/postgres
  Reason: image not found
no data was returned by command ""/usr/local/Cellar/postgresql/10.5/bin/postgres" -V"
The program "postgres" is needed by pg_ctl but was not found in the
same directory as "/usr/local/Cellar/postgresql/10.5/bin/pg_ctl".
Check your installation.

检查icu4c存在版本不对应

brew info icu4c

icu4c: stable 63.1 (bottled) [keg-only]
C/C++ and Java libraries for Unicode and globalization
https://ssl.icu-project.org/
/usr/local/Cellar/icu4c/62.1 (250 files, 67.3MB)
  Poured from bottle on 2018-11-14 at 16:01:31
/usr/local/Cellar/icu4c/63.1 (254 files, 68.4MB)
  Poured from bottle on 2018-12-25 at 21:38:50

切换版本

brew switch icu4c 62.1

Cleaning /usr/local/Cellar/icu4c/62.1
Cleaning /usr/local/Cellar/icu4c/63.1
Opt link created for /usr/local/Cellar/icu4c/62.1

在启动

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
waiting for server to start.... done
server started

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值