DYLD_LIBRARY_PATH Troubleshooting
The environment variable DYLD_LIBRARY_PATH is used in OS X to track the library path (equal to LD_LIBRARY_PATH on other unices).
If you ever consider setting that variable, then make damn sure not to include the library directory of your fink or darwinports installation. The problem is that if OS X runs into a library that it is looking for in that path, it tries to use it. This is to be expected, but unfortunately, those libraries are not designed to handle those kinds of things.
So even simple commands such as "open ." will end up with errors such as this one:
dyld: Library not loaded: /usr/lib/libcrypto.0.9.7.dylib
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
Reason: Incompatible library version: ColorSync requires version 0.9.7
or later, but libcrypto.0.9.7.dylib provides version 0.9.0
Solution is to not set that variable at all, or only for directories that contain libraries that are not related at all to the system libraries.
October 10th, 2008 at 23:08
[...] I looked up that error and the only thing I found was a post by Jeroen saying that my error was caused by an environment variable being set incorrectly. (Thanks Jeroen, [...]