Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib

hbejgel picture hbejgel · Jan 31, 2014 · Viewed 69k times · Source

I just installed posgresql with homebrew and when I go on to type the command

psql

I get the following error:

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

Does anyone have any idea about what's wrong?

Answer

dafunkeemonkee picture dafunkeemonkee · Sep 30, 2016

I was getting the exact same error, but the above answers didn't work for me. I had to reinstall postgresql.

brew reinstall postgresql