David Orlovich wrote:


yes I do:
DYLD_LIBRARY_PATH=/usr/local/staden-macosx-1-4-1/lib/macosx-binaries

The problem you are having is a classical example for why it is generally considered harmful to set this environment variable. It should only be used in exceptional cases, for testing new versions of libraries etc. Setting it in a login file is really bad style and a sign of lazy programmers.


They could and should have defined install_name for their libraries, and the executables would then find the libraries automatically. You might want to go to the staden site and hit them over the head with some Darwin programmer's manual. I mean, producing something like what I see here is really disgusting:

% otool -L staden-macosx-1-4-1/macosx-bin/stash
staden-macosx-1-4-1/macosx-bin/stash:
../lib/macosx-binaries/libtk_utils.dylib (compatibility version 0.0.0, current version 0.0.0)
libpng12.0.1.2.5.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libtk8.4.dylib (compatibility version 8.4.0, current version 8.4.0)
/usr/local/lib/libtcl8.4.dylib (compatibility version 8.4.0, current version 8.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0)
/usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0)


Mmm well I'm learning as I go here ... but I imagine if I unset the variable I might not be able to run my staden package apps (which I want to get working more than I want bluefish, however nice bluefish

Yes, right now you have to choose between the two. But setting this environment variable will probably kill other programs, too. Anything that uses one of the libraries which exist in /usr/local/staden-macosx-1-4-1/lib/macosx-binaries is doomed, in principle.


What you can do is to define an alias or two, in tcsh for example

alias staden-start "setenv DYLD_LIBRARY_PATH=/usr/local/staden-macosx-1-4-1/lib/macosx-binaries"

and

alias staden-stop "unsetenv DYLD_LIBRARY_PATH=/usr/local/staden-macosx-1-4-1/lib/macosx-binaries"

Then remove the setenv command from your staden.login script and run staden-start whenever you want to use one of the staden binaries, and staden-stop afterwards.

looks!). The staden package has just become open source and is a nice suite of molecular biology apps. I wonder if they could be incorporated into fink so they all play nicely with each other...

Good idea, you are volunteering?


--
Martin



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to