On Wednesday, January 29, 2003, at 11:21  AM, Ari B Kahn wrote:
I have some libraries of my own that I would like to keep in my own
directory.  How do I set the library path in tcsh?

On Sun/Linux I would do the following
setenv LD_LIBRARY_PATH ~/Development/lib:/sw/lib:${LD_LIBRARY_PATH}

I keep getting
Last login: Wed Jan 29 12:16:43 on ttyp5
Welcome to Darwin!
LD_LIBRARY_PATH: Undefined variable.
It's telling the truth. ;-) Since LD_LIBRARY_PATH might not already be set, you can do something like this:

if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH ~/Development/lib:/sw/lib:$LD_LIBRARY_PATH
else
setenv LD_LIBRARY_PATH ~/Development/lib:/sw/lib
endif


-Ken

Reply via email to