Search code examples
postgresqlpsqllibreadline

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


I just installed PostgreSQL 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

What's wrong?


Solution

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

    brew reinstall postgresql