I\'m working on a Mac, Sierra 10.12.3, and I\'m trying to access a PostgreSQL database via the psql command, but it threw the error
psql
dyld: Library n
I was able to resolve this by simply running brew switch readline 6.3.8
brew switch readline 6.3.8