Michael Wood-Vasey update
I started with Simon's very usefully recorded prior experience below and then set about installing the v10_0 version of the stack.
My default shell is bash. Almost all of the same issues that Simon originally raised still apply.
Related notes.
1. Log in to NERSC:
ssh carver.nersc.gov
2. Make a working directory in the project space:
mkdir -p /project/projectdirs/m1727/lsst_S14/lsstStack
3. setup the needed modules:
module swap pgi gcc
module load git
5. Install Anaconda
cd /project/projectdirs/m1727/lsst_S14/
curl -s -L -o installer.sh http://repo.continuum.io/archive/Anaconda-2.1.0-Linux-x86_64.sh
bash installer.sh -b -p anaconda
5. Install Gettext
mkdir src
cd src
curl -O http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.tar.gz
tar zxvf gettext-0.19.tar.gz
cd gettext-0.19
./configure --prefix $PWD/../../
make install
6. Setup environment
export PATH=/project/projectdirs/m1727/lsst_S14/bin:/project/projectdirs/m1727/lsst_S14/anaconda/bin:${PATH}
export PYTHON=/project/projectdirs/m1727/lsst_S14/anaconda/bin/python
source "/project/projectdirs/m1727/lsst_S14/lsstStack/loadLSST.bash"
7. Install the basic stack
cd /project/projectdirs/m1727/lsst_S14/lsstStack
curl -O https://sw.lsstcorp.org/eupspkg/newinstall.sh
bash newinstall.sh
#Answer no to install git? and install anaconda?
source "/project/projectdirs/m1727/lsst_S14/lsstStack/loadLSST.bash"
8. Start compiling
Either
eups distrib install lsst_apps
or
eups distrib install lsst_sims -t sims
This will go along fine until afw, at which point it will die because it will exceed the virtual memory available on the login node.
So we'll go to a compute node to finish afw
qsub -I -q interactive -l walltime=00:30:00 #need this long since afw takes a while to compile
cd /project/projectdirs/m1727/lsst_S14
module swap pgi gcc
module load m4
export PATH=/project/projectdirs/m1727/lsst_S14/bin:/project/projectdirs/m1727/lsst_S14/anaconda/bin:${PATH}
export PYTHON=/project/projectdirs/m1727/lsst_S14/anaconda/bin/python
source lsstStack/loadLSST.bash
#So here this gets a little tricky because as of (2015-03-05) "lsst_sims -t sims" requires an afw version that's different than "lsst_apps" current
#If you're installing lsst_apps [current], then just
eups distrib install afw
#If you're installing lsst_sims -t sims as of 2015-03-05 then
eups distrib install afw master-gcb7650adda
Finish up the install after exiting the interactive allocation
Either
eups distrib install lsst_apps
or
eups distrib install lsst_sims -t sims
...wait...a...very...long...time
setup lsst_apps
or
setup lsst_sims -t sims
This last succeeded except for "sims_catUtils", "sims_maf", and "lsst_sims".
To use this lsst_apps stack under bash:
export PATH=/project/projectdirs/m1727/lsst_S14/anaconda/bin:$PATH
source /project/projectdirs/m1727/lsst_S14/lsstStack/loadLSST.bash
setup lsst_apps
================
In summary
ssh carver.nersc.gov
mkdir -p /project/projectdirs/m1727/lsst_S14/lsstStack
module swap pgi gcc
module load git
cd /project/projectdirs/m1727/lsst_S14/
curl -s -L -o installer.sh http://repo.continuum.io/archive/Anaconda-2.1.0-Linux-x86_64.sh
bash installer.sh -b -p anaconda
mkdir src
cd src
curl -O http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.tar.gz
tar zxvf gettext-0.19.tar.gz
cd gettext-0.19
./configure --prefix $PWD/../../
make install
export PATH=/project/projectdirs/m1727/lsst_S14/bin:/project/projectdirs/m1727/lsst_S14/anaconda/bin:${PATH}
export PYTHON=/project/projectdirs/m1727/lsst_S14/anaconda/bin/python
cd /project/projectdirs/m1727/lsst_S14/lsstStack
curl -O https://sw.lsstcorp.org/eupspkg/newinstall.sh
bash newinstall.sh
#Answer no to install git? and install anaconda?
source "/project/projectdirs/m1727/lsst_S14/lsstStack/loadLSST.bash"
eups distrib install lsst_apps
qsub -I -q interactive -l walltime=00:30:00 #need this long since afw takes a while to compile
# The following are executed on the interactive node
cd /project/projectdirs/m1727/lsst_S14
module swap pgi gcc
module load m4
export PATH=/project/projectdirs/m1727/lsst_S14/bin:/project/projectdirs/m1727/lsst_S14/anaconda/bin:${PATH}
export PYTHON=/project/projectdirs/m1727/lsst_S14/anaconda/bin/python
source lsstStack/loadLSST.bash
eups distrib install afw
exit # log out of the interactive node session
#Finish up the install after exiting the interactive allocation
eups distrib install lsst_apps
================
To use this stack to:
setenv PATH /project/projectdirs/m1727/lsst/anaconda/bin:$PATH
source /project/projectdirs/m1727/lsst/lsstStack/loadLSST.csh
setup lsst_sims -t sims
================
Simon Krughoff originally put this together 2014 June.
This was not as straight forward as I had hoped. Issues were:
How I did it. I tried to use bash, but my default shell is tcsh and I had some shell issues (path to module command wasn't defined):
To use this stack to:
$> setenv PATH /project/projectdirs/m1727/lsst/anaconda/bin:$PATH
$> source /project/projectdirs/m1727/lsst/lsstStack/loadLSST.csh
$> setup lsst_sims -t sims