Trying to setup postgres with the postgres mac app and hit this error, which I haven\'t been able to solve. Any thoughts?
ImportError: dlopen(/Users/Crai
I encountered this issue when I upgraded from postgres.app 9.4 to 9.5 on el capitan.
The other solutions will not work (easily) in el capitan because of the system lock on certain directories, meaning the symbolic link solution will be less accessible/ideal for most.
This leaves the fallback variable. The current answer points to the wrong directory. I am guessing the dylibs directory has changed since 2013.
So, here is the latest fallback directory that works for me:
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/Postgres.app/Contents/Versions/latest/lib:$DYLD_LIBRARY_PATH