我试着启动psql,但是
psql: could 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"?当我使用postgres -D /usr/local/var/postgres时,得到了以下错误:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
Referenced from: /usr/local/bin/postgres
Reason: image not found
[1] 2559 abort postgres -D /usr/local/var/postgres通过对libicui18n.63.dylib的快速搜索,我发现我需要版本63的icu4c库。然而,brew list icu4c说我有64.2版。
我试过brew install icu4c 63和brew install icu4c@63,但没有运气。
有人能帮忙吗?提前谢谢。
发布于 2019-04-24 10:43:03
解决方案:
cd到Homebrew的公式目录icu4c版本63 )以签出git log --follow icu4c.rbgit checkout -b icu4c-63 e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7brew reinstall ./icu4c.rbbrew switch icu4c 63.1git checkout master资料来源:
对于那些不止一次使用这个工具的人来说,这是额外的奖励:
# zsh
function hiicu63() {
local last_dir=$(pwd)
cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
git checkout icu4c-63
brew reinstall ./icu4c.rb
brew switch icu4c 63.1
git checkout master
cd $last_dir
}发布于 2019-07-30 11:01:36
就像@dingusjh说的,但是使用reinstall命令而不是install,以防brew抱怨已经安装了icu4c,您应该尝试使用extract。然后,完整的命令是:
brew reinstall https://raw.githubusercontent.com/Homebrew/homebrew-core/e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7/Formula/icu4c.rb发布于 2019-06-20 21:34:22
这应该更容易些。
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7/Formula/icu4c.rbhttps://stackoverflow.com/questions/55826221
复制相似问题