Skip to content

Instantly share code, notes, and snippets.

@sbesson
Created April 23, 2012 13:01
Show Gist options
  • Save sbesson/2470800 to your computer and use it in GitHub Desktop.
Save sbesson/2470800 to your computer and use it in GitHub Desktop.
Errors caused by setting DYLD_LIBRARY_PATH
omes-MacBook-Pro-15:openmicroscopy ome$ java -version
Error occurred during initialization of VM
Unable to load native library: libjava.jnilib
omes-MacBook-Pro-15:openmicroscopy ome$ unset DYLD_LIBRARY_PATH
omes-MacBook-Pro-15:openmicroscopy ome$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3646)
Java HotSpot(TM) Client VM (build 20.6-b01-415, mixed mode)
sbesson:openmicroscopy sebatien$ export DYLD_LIBRARY_PATH=$BREW_DIR/lib
sbesson:openmicroscopy sebastien$ open -e ~/.profile
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Expected in: /usr/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Trace/BPT trap: 5
sbesson:openmicroscopy sebastien$ export DYLD_LIBRARY_PATH=""
sbesson:openmicroscopy sebastien$ open -e ~/.profile
sbesson:openmicroscopy sebastien$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment