CshSnippetForSoftware
NOTE, this is obsolete. Please refer to Accessing Linc Software page. If you run csh as your default command-line shell for Unix/Linux, you should include this code in you .cshrc file. This will allow you to access executables and libraries maintained by LINC.
LINC-CSHRC-ADD.txt
—
Plain Text,
3Kb
File contents
#LINC Related Statements
#The next line allows the use of ssh authentication when talking to the CVS server
setenv CVS_RSH ssh
#Next, adding this line to be able to access the Java Postgres Driver
if ( $?CLASSPATH == 0) then
setenv CLASSPATH /lincfs/software/independent/DB_Driver/Postgres_JDBC/postgres.jar:$CLASSPATH
else
setenv CLASSPATH /lincfs/software/independent/DB_Driver/Postgres_JDBC/postgres.jar
endif
#Now, enabling the scons build tool
set path=(/lincfs/users/LINC/software/independent/scons/scons-1-1-0/bin $path)
#Okay - the rest of the sets is dependant on the OS and Platform - so, let's check those.
#first, let's get the main OS type
set linctemp = `echo ``uname -s`
#If is is SunOS
if (${linctemp} == "SunOS") then
#get the version
set linctemp = `echo ``uname -r`;
#if it is 5.10 (Solaris 10), then set these environment variables:
if (${linctemp} == "5.10") then
set path=(/lincfs/users/LINC/software/solaris5_10/bin /lincfs/users/LINC/software/solaris5_10/include $path)
setenv LD_LIBRARY_PATH /lincfs/users/LINC/software/solaris5_10/lib:${LD_LIBRARY_PATH}
setenv MANPATH ${MANPATH}:/lincfs/users/LINC/software/solaris5_10/share/man
else
#otherwise, it is Solaris 8 (to my knowledge, we only have 10 and 8 at CACS)
if (${linctemp} == "5.8") then
set path=(/lincfs/users/LINC/software/solaris5_8/bin /lincfs/users/LINC/software/solaris5_8/include $path)
setenv LD_LIBRARY_PATH /lincfs/users/LINC/software/solaris5_8/lib:${LD_LIBRARY_PATH}
setenv MANPATH ${MANPATH}:/lincfs/users/LINC/software/solaris5_10/share/man
endif
endif
else
#If it isn't Solaris, then probably Linux (let's make sure)
if (${linctemp} == "Linux") then
#Right now, we are supporting two versions of Linux - both CentOS
#So, let's make sure it is CentOS
if (`cat /etc/redhat-release | cut -d ' ' -f1` == "CentOS") then
#Now, check to see if it is CentOS4 - note, I believe the CentOS4 machines are all 32-bit
if (`cat /etc/redhat-release | cut -d ' ' -f3 | cut -c1` == '4') then
set path=(/lincfs/users/LINC/software/centOS4/bin /lincfs/users/LINC/software/centOS4/include $path)
setenv LD_LIBRARY_PATH /lincfs/users/LINC/software/centOS4/lib:${LD_LIBRARY_PATH}
setenv MANPATH ${MANPATH}:/lincfs/users/LINC/software/centOS4/share/man:/lincfs/users/LINC/software/centOS4/man:/lincfs/users/LINC/software/centOS4/grass-6.3.0/man
else
#If not CentOS4, then we also support 64-bit CentOS5 (I'm currently supporting 32-bit CentOS5)
if (`cat /etc/redhat-release | cut -d ' ' -f3 | cut -c1` == '5') then
if (`uname -i` == 'x86_64') then
set path=(/lincfs/users/LINC/software/centOS5_64/bin /lincfs/users/LINC/software/centOS5_64/include $path)
setenv JAVA_HOME /usr/java/jdk1.6.0
setenv LD_LIBRARY_PATH /usr/lib64:/lincfs/users/LINC/software/centOS5_64/lib64:/lincfs/users/LINC/software/centOS5_64/lib:${LD_LIBRARY_PATH}:/lib64:/lib
setenv MANPATH /lincfs/users/LINC/software/centOS5_64/share/man:/lincfs/users/LINC/software/centOS5_64/man:${MANPATH}
if ( $?PKG_CONFIG_PATH == 0) then
setenv PKG_CONFIG_PATH /usr/lib64/pkgconfig
else
setenv PKG_CONFIG_PATH /usr/lib64/pkgconfig:${PKG_CONFIG_PATH}
endif
endif
endif
endif
endif
endif
endif
unset linctemp
#end LINC related checks
