I am trying to get postgres and git to work together in a python3.4 / django1.7 work environment on a Mac with Mavericks. My problem is simple to describe:
When I put the following line in my ./bash_profile, postgres works fine:
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib
However, when I try something like git status
, I get the following error (which has been discussed here and here):
dyld: lazy symbol binding failed: Symbol not found: _iconv_open
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/git
Expected in: /Library/PostgreSQL/9.3/lib/libiconv.2.dylib
dyld: Symbol not found: _iconv_open
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/git
Expected in: /Library/PostgreSQL/9.3/lib/libiconv.2.dylib
When I comment out the line which makes postgres work, git works fine. What do I do to have both work?
I found a workable answer here. Yay stackoverflow as usual. I chose to create the symlinks.