[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ccp4bb]: Bourne Shell



***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***

Howdy,

> In response to my earlier question, Clemens Vonrhein pointed us to
> LD_LIBRARY_PATH.
> 
> Here is the appropriate section of $CINCL/ccp4.setup-bash after editing:
> 
>  if test "$LD_LIBRARY_PATH"; then
>    setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH:$CLIB"
>  else
>    setenv LD_LIBRARY_PATH "/lib:/usr/lib:/usr/local/lib:$CLIB"
>  fi
> 
> Note the comments on "setenv" at the top of the ccp4.setup-bash file.
> The colons are required as separator in the path statement.  This way,
> ccp4 can be used with the Bourne shell.
> 

For bash, I use export, as setenv is a c-shell command. ie:

export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:$CLIB"

I think that you can use 

set LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:$CLIB"; export \
LD_LIBRARY_PATH

as a more verbose alternative. 

Cheers,

Graeme