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:
- few posts suggested to update brew
- few suggested adding /usr/local/bin/psql to the ~/.bash_profile and restarting the system
- few said it was problem with XCode but I do not have XCode installed so it isnt valid for me I guess.
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:
- psql (PostgreSQL) 9.6.2
- macOS Sierra version 10.12.3