At startup
$ 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 several things:
- some posts suggested for brew update
- some suggested adding / usr / local / bin / psql to the ~ / .bash_profile file and restarting the system.
- Several people said that this is a problem with Xcode, but I do not have Xcode, so it is not suitable for me, I think.
but none of this worked out.
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/geckodriveββr:$PATH" export PATH
I use:
- psql (PostgreSQL) 9.6.2
- macOS Sierra version 10.12.3
homebrew psql macos
raj247
source share