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