【发布时间】:2020-12-20 06:15:03
【问题描述】:
从 postgresql.org/download 安装 Postgresql,然后运行 brew install postgresql,我试图通过在我的 zsh 终端上输入“psql --version”来确认我已经安装了 postgresql。但是,它显示以下错误消息:
psql --version
dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Referenced from: /usr/local/Cellar/postgresql/12.4/lib/libpq.5.12.dylib
Reason: image not found
zsh: abort psql --version
我尝试了很多我在网上找到的命令,例如 brew doctor、brew update、brew install readline、brew link readline --force 和 cd /usr/local/opt/readline/lib ln -s libreadline.8.0.dylib libreadline.7.dylib,没有特别的顺序。
为什么我安装成功后提示“Library is not loaded”,我可以运行哪些命令来解决?
【问题讨论】:
标签: postgresql macos homebrew