Q: DYLD Library Problem
A couple of days ago, I tried to install libgd and obviously made some horrible mistakes. I installed a .pkg (seemed to be libgd) and a couple of source files (e.g. libpng, libjpeg). Since then I cannot execute any terminal commands any more. I keep getting the following error:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Expected in: /usr/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
I already tried to uninstall/reinstall/install a lot of libraries (libtiff, libpng, libjpeg, libgd), but that did not help. The only thing that helps is "export DYLD_LIBRARY_PATH=/Users/asamatbagatov/local/lib", but that just works until I open a new Terminal window or restart Terminal. Doesn't help me in my IDE as well. Does anyone know what the reason for this error message is?
EDIT: My DYLD_LIBRARY_PATH is (in case I do not set it explicitly):
"/Users/asamatbagatov/local/lib:/usr/local/lib"
Thank you very much in advance!
MacBook Pro with Retina display, OS X Yosemite (10.10.2)
Posted on Feb 17, 2015 11:39 AM