I just installed posgresql with homebrew and when I go on to type the command
psql
I get the following error:
dyld: Library
In my case the correct answer did not fix the problem.
The problem started after running brew doctor and adding export PATH="/usr/local/bin:$PATH" to my ~/.zshrc file.
brew doctor
export PATH="/usr/local/bin:$PATH"
Removing
from ~/.zshrc got it solved.
~/.zshrc