I just installed posgresql with homebrew and when I go on to type the command
psql
I get the following error:
dyld: Library
I tried all these terminal commands and nothing worked so decided to fix it manually..
Open finder and hit command+shift+g
Go to this folder /usr/local/opt/readline/lib/
you should see multiple versions of these files
libreadline.6.dylib
libreadline.7.0.dylib
rename any of them to whichever library is not loaded
this is: /usr/local/opt/readline/lib/libreadline.6.2.dylib
mine was: /usr/local/opt/readline/lib/libreadline.6.dylib