On running
$ psql
I get this error
dyld: lazy symbol binding failed: Symbol not found:
_PQsetErrorContextVisibility
Referenced from: /usr/local/bin/psql
Expected in: /usr/local/lib/libpq.5.dylib
dyld: Symbol not found: _PQsetErrorContextVisibility
Referenced from: /usr/local/bin/psql
Expected in: /usr/local/lib/libpq.5.dylib
Abort trap: 6
I have tried a few things:
but none of it worked.
my bash_profile looks like this
PATH="/usr/local/bin/psql:/usr/local/sbin:/usr/local/bin:/sbin:/bin
:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin/geckodriver:$PATH"
export PATH
I am using:
I was on PostgreSQL 9.6.2 as well, and ran into the same problem.
I upgraded to 9.6.3 using brew like this:
rm '/usr/local/lib/libpq.5.dylib'
brew upgrade postgresql
brew link postgresql
It worked, and now I have access via psql again.
The thing that worked for me was uninstalling and reinstalling postgres using the code below:
brew uninstall postgresql
brew install postgresql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With