Difference: PsmPackageSystem (3 vs. 4)

Revision 42008-02-27 - BradAtcheson

Line: 1 to 1
 
META TOPICPARENT name="PsmSpace"

Description

Line: 97 to 97
  One cautionary note is that the use scripts will pick packages from the CS local section before the PSM section. If there is a collision, like with OpenEXR-1.2.2, then the CS local one will be chosen. This hasn't been a problem, but if it is, it is always possible to tag our packages as PSM-PACKAGE_NAME to differentiate. Talk to Matthew Trentacoste if there are any issues.
Added:
>
>

Bash

The Bash equivalent of the above is:

#=== Determine our system ==========
# Determine what operating system we are using
OS_DIST=`uname -s`;

# Figure out what distro and version we are running
if [ "$OS_DIST" = "Linux" ]; then
   if [ -f /etc/SuSE-release ]; then
      OS_NAME='SuSE'
      if [[ `cat /etc/SuSE-release | grep openSUSE` ]]; then
         OS_VERS=`head -n 1 /etc/SuSE-release | sed 's/[\(\)]//g' | awk '{print "_" $3 "-" $2}'`
      else
         OS_VERS=`head -n 1 /etc/SuSE-release | awk '{print $3; }'`
      fi
   elif [ -f /etc/fedora-release ]; then
      OS_NAME='Fedora'
      OS_VERS=`head -n 1 /etc/fedora-release | awk '{print $5; }'`
   elif [ -f /etc/redhat-release ]; then
      OS_NAME='Redhat'
      OS_VERS=`head -n 1 /etc/redhat-release | awk '{print $5; }'`
   elif [ -f /etc/debian_version ]; then
      OS_NAME='Debian'
      OS_VERS=`head -n 1 /etc/debian_version | awk '{print $1; }'`
   else
      OS_NAME='None'
      OS_VERS='0'
   fi
else
   # If other (namely Sun and Apple), then use the uname results
   OS_NAME=${OS_DIST}
   OS_VERS=`uname -r`
fi

# Set the system name to locate our binaries with
export USERPKGARCHSYS=${OS_NAME}${OS_VERS}

#=== Set use system ================

# Set generic location and description
#export USERPKGBASE=/imager/project/ModelingAndRendering/Packages
export USERPKGBASE=/ubc/cs/research/imager/project/psm/Packages
export USERPKGROOT=${USERPKGBASE}/Generic
export USERPKGDESC='PSM Lab software'

# Set architecture directory based on what system you are on
export USERPKGARCH=${USERPKGBASE}/Arch/${USERPKGARCHSYS}
 

Libraries and Compiling

While the use script will add things to the $PATH variable, it does not automatically configure everything necessary to compile software with libraries and header in the PSM use software. Additional environmental variables can be set to instruct GCC to search in the proper places. Paste the following code below the other section in your ~/csh_init/environment file.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback