我正在尝试启动 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
命令,但都没有成功。
请问有人能提供帮助吗?非常感谢!
git -C "$(brew --repo homebrew/core)" fetch --unshallow
。这将帮助您获取更多的版本历史记录信息。 - Lipdk