我正试图让postgres和git在Mac上与小牛队的python3.4 / django1.7工作环境中一起工作。我的问题很容易描述:
当我在./bash_profile中添加以下行时,postgres工作正常:
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib
但是,当我尝试git status
之类的内容时,我收到以下错误(已经讨论过here和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
当我评论出使postgres工作的行时,git工作得很好。我该怎么办才能兼得?
我找到了a workable answer here。像往常一样,堆栈溢出。我选择创建符号链接。
答案 0 :(得分:1)
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib:$DYLD_LIBRARY_PATH