I just installed posgresql with homebrew and when I go on to type the command
psql
I get the following error:
dyld: Library
I had this issue, and the key for me was to reinstall both readline and postgres. Once postgres was reinstalled, the issue was resolved.
reinstall
readline
postgres