Libssl and libcrypto causing dyld: Library not loaded: /usr/lib/libpq.5.dylib
Turns out /usr/lib/libpq.5.dylib was absent but /usr/lib/libpq.5.4.dylib was not.
sudo ln -s /usr/lib/libpq.5.4.dylib /usr/lib/libpq.5.dylib
fixed the issue.
Not unlike @Pablo Marambio, I fixed this issue by adding the following line to ~/.profile
:
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib:$DYLD_LIBRARY_PATH
For Postgres.app v9.3.5.0 (presumably others too) I added the following line instead:
export DYLD_LIBRARY_PATH=/Applications/Postgres.app/Contents/Versions/9.3/lib:$DYLD_LIBRARY_PATH
Then, of course, run source ~/.profile
To resolve this, I had to uninstall postgresql and then install again.
$ brew uninstall postgresql$ brew update$ brew install postgres