On 11/23/2013 6:57 AM, Hans-Jürgen Greif wrote:
> Hello Hanspeter,
> #find / -name „libtiff*“ -print > litiff.log
> cat libtiff.log:
>
> /Applications/MATLAB/MATLAB_Compiler_Runtime/v80/bin/maci64/libtiff.5.dylib
> /Applications/MATLAB/MATLAB_Compiler_Runtime/v80/toolbox/matlab/imagesci/libtiffcopyright.txt
> /Applications/TeX/TeXworks.app/Contents/MacOS/libtiff.5.dylib
> /sw/fink/10.7/stable/main/binary-darwin-x86_64/graphics/libtiff-bin_4.0.3-4_darwin-x86_64.deb
> /sw/fink/10.7/stable/main/binary-darwin-x86_64/graphics/libtiff5-shlibs_4.0.3-4_darwin-x86_64.deb
> /sw/fink/10.7/stable/main/binary-darwin-x86_64/graphics/libtiff5_4.0.3-4_darwin-x86_64.deb
> /sw/fink/10.7/stable/main/finkinfo/graphics/libtiff.info
> /sw/fink/10.7/stable/main/finkinfo/graphics/libtiff.patch
> /sw/fink/10.7/stable/main/finkinfo/graphics/libtiff5-shlibs.info
> /sw/fink/10.7/stable/main/finkinfo/graphics/libtiff5-shlibs.patch
> /sw/fink/debs/libtiff-bin_4.0.3-4_darwin-x86_64.deb
> /sw/fink/debs/libtiff5-shlibs_4.0.3-4_darwin-x86_64.deb
> /sw/fink/debs/libtiff5_4.0.3-4_darwin-x86_64.deb
> /sw/lib/libtiff.5.dylib
> /sw/lib/libtiff.dylib
> /sw/lib/libtiff.la
> /sw/lib/libtiffxx.5.dylib
> /sw/lib/libtiffxx.dylib
> /sw/lib/libtiffxx.la
> /sw/lib/pkgconfig/libtiff-4.pc
> /sw/share/doc/libtiff5
> /sw/share/doc/libtiff5-shlibs
> /sw/share/doc/tiff-4.0.3/html/libtiff.html
> /sw/share/doc/tiff-4.0.3/html/man/libtiff.3tiff.html
> /sw/share/man/man3/libtiff.3tiff
> /sw/var/lib/dpkg/info/libtiff5-shlibs.list
> /sw/var/lib/dpkg/info/libtiff5-shlibs.md5sums
> /sw/var/lib/dpkg/info/libtiff5-shlibs.shlibs
> /sw/var/lib/dpkg/info/libtiff5.list
> /sw/var/lib/dpkg/info/libtiff5.md5sums
> /System/Library/Tcl/8.4/Img1.4/libtifftcl3.9.4.dylib
> /System/Library/Tcl/8.5/Img1.4/libtifftcl3.9.4.dylib
> /Users/gre/Downloads/Pixie/libtiff.log
>
> I think the 
> /Applications/MATLAB/MATLAB_Compiler_Runtime/v80/bin/maci64/libtiff.5.dylib
> is taken and makes problems.
>
>
> My .profile shows
>
> #declare -x PATH=$PATH:/sw/bin:/Library/Pixie/bin
> alias e="/usr/bin/Aquamacs"
> #declare -x  PIXIEHOME=/Library/Pixie
> #declare -x LD_LIBRARY_PATH=$PIXIEHOME/lib
>
> declare -x MATLABROOT="/Applications/MATLAB/MATLAB_Compiler_Runtime/v80"
>
> declare -x 
> DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Applications/MATLAB/MATLAB_Compiler_Runtime/v80/runtime/maci64:/Applications/MATLAB/MATLAB_Compiler_Runtime/v80/sys/os/maci64
> declare -x 
> DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Applications/MATLAB/MATLAB_Compiler_Runtime/v80/bin/maci64
> declare -x 
> DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/System/Library/Frameworks/JavaVM.framework/JavaVM:/System/Library/Frameworks/JavaVM.framework/Libraries
>
> declare -x 
> XAPPLRESDIR=/Applications/MATLAB/MATLAB_Compiler_Runtime/V80/X11/app-defaults
>
> . /sw/bin/init.sh
>
>
> How to handle this problem?

If Matlab really needs all those DYLD_LIBRARY_PATH additions, then their 
.app bundle generation is very broken.  DYLD_LIBRARY_PATH is really only 
useful during development, but is more likely than not to break things 
in real world usage (as you discovered).

You can try setting DYLD_FALLBACK_LIBRARY_PATH instead, which is 
sometimes gentler, but is not guaranteed to be 100% safe.  Can also try 
adding /sw/lib to the front of 
DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH so that a Fink library will 
take precedence, but that will probably break anything that is looking 
for its internal library but finds a Fink library instead.

Hanspeter


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to