In a post from a while ago, I mentioned an “experimental” installer of gstreamer for OSX. Some people found that libraries bundled with the installer (libiconv.2.dylib in particular) conflicted with versions of the same libraries deployed by other applications. Brad Borevitz just suggested a hack to remedy this issue. As with any hack, no responsibilities are taken for unexpected/undesired effects:-)
The GStreamer installer adds the following two lines to the file /etc/launchd.conf:
setenv DYLD_LIBRARY_PATH “/Library/GStreamer/lib”
setenv GST_PLUGIN_PATH “/Library/GStreamer/lib/gstreamer-0.10″
Basically, this tells the applications where to look for gstreamer library and plugin files. The problem is that some applications need a library called libiconv.2.dylib, which comes as part of the GStreamer installation in the /Library/GStreamer/lib folder. But the GStremer version of this library might be incompatible with the version required by some apps, such as VLC or or CarbonCopyCloner.
The solution is to add to DYLD_LIBRARY_PATH the alternate folders where other versions of libiconv.2.dylib can be found in the system:
setenv DYLD_LIBRARY_PATH /Library/Frameworks:/Network/Library/Frameworks:/System/Library/Frameworks /Library/Frameworks:/Network/Library/Frameworks:/System/Library/Frameworks/System/Library/Frameworks:$(HOME)/lib:/usr/local/lib:/lib:/usr/lib:/Library/GStreamer/lib
with the GStreamer folder in the last place. Thanks to Brad for pointing out this tip!