Installing software
Guidance for installing programs.
All program installations should be performed with a Build node.
-
Transfer your program files on to Hyak. Make note of any dependencies your program may need including Python (which can be loaded via a module) or another program.
-
If your program installation has dependency installation as part of the install script, you will need to use a build node for installation and compiling, otherwise an interactive node will be adequate.
-
Due to space limitations, and our desire to share with the rest of the lab, all programs should be installed here:
/gscratch/srlab/programs
.
-
Unzip the program files.
-
Begin installation. Most software packages include a
README
text file that explains the installation procedure. There is a lot of trial and error in this step, and you'll get very good at reading and Googling error messages, StackExchange will be your friend. An example of the process involved can be found here
General Tips
- Add
cmake
to your system$PATH
by adding the following to your~/.bashrc
file:
# Append cmake to beginning of PATH (primarily for Trinity 2.8 install)
export PATH="/gscratch/srlab/programs/cmake-3.12.1/bin:$PATH"
(Ana) conda packages:
-
Activate the default (base) conda environment:
/gscratch/srlab/programs/anaconda3/condabin/conda activate
-
Install your desired package (replace
<package>
with your package name):conda install <package>
-
Deactivate the conda environment:
conda deactivate
-
The program should now be available in this directory:
/gscratch/srlab/programs/anaconda3/bin/<program_name>
Installing R Packages
This is a guide to change the default R library install location to avoid running into space limits in the default home directory. After following the instructions below, all package installations should be performed on a build node.
-
Make a designated directory for your R packages, e.g.:
mkdir --parents /gscratch/srlab/${USER}/R_libs
-
Create an
.Renviron
file in your home directory, defining theR_USER_LIB
location established in Step 1:echo "# Set local library installation path R_LIBS_USER=/gscratch/srlab/${USER}/R_libs" > ~/.Renviron
-
Confirm success:
# Start R /gscratch/srlab/programs/R-3.6.2/bin/R
# Check library paths .libPaths()
-
The output should look something like this:
[1] "/gscratch/srlab/sam/R_libs" [2] "/gscratch/srlab/programs/R-3.6.2/library"