0

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.

Community
  • 1
  • 1
Cole
  • 2,489
  • 1
  • 29
  • 48

1 Answers1

1

try this ?

export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib:$DYLD_LIBRARY_PATH
Andrew C
  • 13,845
  • 6
  • 50
  • 57