aaron bryden wrote:
> Yes,
> 
> I looked at this again and yes DYLD_LIBRARY_PATH is getting set to
> include /usr/local even though I don't know where or what would have
> set it. I removed the other libpng and pymol now works. Thank you very
> much, I was about to reinstall OS X as a whole and try again.  Where
> other than the automatically executed scripts in my home directory do
> you look for environment variables in OS X?

If you really want to see what your bash is doing at startup, you can 
execute the command

  env -i bash -lvx

Warning: This can generate several hundred lines of output!

Explanation:

The "env -i" transmits an empty clean environment to the new shell.

The "l" in "-lvx" tells bash to start up in "login" mode, which is what 
you also usually get when you open a new Terminal window.

The "v" means "verbose" and causes all command lines in the startup 
scripts to be displayed as they are encountered.

The "x" makes bash show the commands it actually executes. These are 
marked by a "+" in the output.

In the output, you should be able to find the line that sets 
DYLD_LIBRARY_PATH, and then you can work your way up to the command that 
runs the script containing that line.

There is one other possibility not caught by the procedure I just 
described: If you have a file "~/.MacOSX/environment.plist", you can use 
it to set environment variables for the Finder that will be transmitted 
to any program running in the Finder, hence also Terminal.app, which 
will then transmit it to any shell running in one of its windows. This 
will bypass all shell startup scripts.

-- 
Martin


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to