我将他的行添加到我的.bash_profile
# Postgres new config for OSX Mavericks
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/Postgres.app/Contents/MacOS/lib:$DYLD_LIBRARY_PATH
alias psql="(. ~/.bash_profile; unset DYLD_FALLBACK_LIBRARY_PATH; psql)";
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.3/lib:$DYLD_LIBRARY_PATH
它导致下面的未知错误:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Expected in: /Library/PostgreSQL/9.3/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Trace/BPT trap: 5
但这是我可以让我的Django App再次使用PosgreSQL的唯一方法。有没有人知道这个错误是什么,或者是否可以通过改变PATH或类似的东西来解决它?
[编辑]
我认为这也导致Python Selenium出现问题,因为我无法再运行Selenium测试。以下是我尝试时收到的错误:
WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: dyld: Symbol not found: __cg_jpeg_resync_to_restart\n Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib\n Expected in: /Library/PostgreSQL/9.3/lib/libJPEG.dylib\n in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib\n'
由于