I just installed posgresql with homebrew and when I go on to type the command
psql
I get the following error:
dyld: Library
This worked for me
brew switch readline
This would display the versions you have installed. Pick one out of them. I picked 7.0.5
I then ran
brew switch readline 7.0.5
The readline version got updated, and psql ran smoothly.