我只是用自制程序安装了posgresql,当我继续键入命令时

psql

我得到以下错误:

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib
Referenced from: /usr/local/bin/psql
Reason: image not found
[1]    69711 trace trap  psql

有人知道是怎么回事吗?


当前回答

下面的命令对我有用:

brew reinstall postgresql
brew postgresql-upgrade-database

其他回答

我试了所有的预习答案,都没用。唯一对我有用的是:

酿造链接postgresql

我遇到了这个问题,对我来说关键是重新安装readline和postgres。重新安装postgres后,问题就解决了。

下面的命令对我有用:

brew reinstall postgresql
brew postgresql-upgrade-database

我发现这个解决方案很有用

brew upgrade bash

https://github.com/Homebrew/homebrew-core/issues/5799

我得到了完全相同的错误,但上面的答案对我不起作用。我不得不重新安装postgresql。

重新安装postgresql