Child pages
  • Hyak_spack
Skip to end of metadata
Go to start of metadata

Spack is a tool which allows you to install your own version of some software.

Below xyz is your group name and abc is your userid.

 

First get an interactive build node.

For ikt.hyak or mox.hyak

srun -p build --time=4:00:00 --mem=100G --pty /bin/bash

 

Make a directory for spack:

mkdir /gscratch/xyz/abc/spack

cd /gscratch/xyz/abc/spack

OR

mkdir /suppscr/xyz/abc/spack

cd /suppscr/xyz/abc/spack

 

Download spack:

git clone https://github.com/llnl/spack.git
source spack/share/spack/setup-env.sh

Below command lists the available spack packages:
spack list
 
Below command prints more information about the r package
spack info r

Below command installs version 3.4.1 of the r package:
spack install r@3.4.1

After above command completes, R 3.4.1 will be installed at a path like below. Below example is for ikt. For mox, the centos version will be 7 and the gcc version will be different.

/gscratch/xyz/abc/spack/spack/opt/spack/linux-centos6-x86_64/gcc-4.4.7/r-3.4.1-4fnpodsm5dxgi6tl7vksoj4s2t6lgjjc

You can access this newly installed R by below steps:

cd /gscratch/xyz/abc/spack/spack/opt/spack/linux-centos6-x86_64/gcc-4.4.7/r-3.4.1-4fnpodsm5dxgi6tl7vksoj4s2t6lgjjc/bin

./R

You can also put below directory in your PATH and then use R 3.4.1 by just using the command R:

/gscratch/xyz/abc/spack/spack/opt/spack/linux-centos6-x86_64/gcc-4.4.7/r-3.4.1-4fnpodsm5dxgi6tl7vksoj4s2t6lgjjc/bin

 

 

Below are more details:

https://spack.io/


  • No labels