Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doku:usif [2017/10/09 12:36] – created markus | doku:usif [2017/10/09 13:15] (current) – [Own Module Files] markus | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== VSC-3 style software installation in a user directory ===== | + | ===== UIBK-style software installation in a user directory ===== |
this can be used to produce software installation scripts and own module files on VSC-3. | this can be used to produce software installation scripts and own module files on VSC-3. | ||
- | | + | |
< | < | ||
export my_usif_path=${HOME}/ | export my_usif_path=${HOME}/ | ||
Line 10: | Line 10: | ||
mkdir -p $my_usif_path/ | mkdir -p $my_usif_path/ | ||
mkdir -p $my_usif_path/ | mkdir -p $my_usif_path/ | ||
+ | mkdir -p $my_usif_path/ | ||
+ | mkdir -p $my_usif_path/ | ||
+ | </ | ||
+ | * create a config file: | ||
+ | < | ||
+ | echo " | ||
+ | HPC_LOG_PATH=$my_usif_path/ | ||
+ | HPC_SW_PATH=$my_usif_path/ | ||
+ | HPC_SYSTEM=vsc3 | ||
+ | unset ARCH_DIR" | ||
+ | </ | ||
+ | |||
+ | * set USIF_SITE_CONFIG (append maybe to .bashrc): | ||
+ | < | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | * Create an install script, eg. for gnuplot: | ||
+ | < | ||
+ | echo '# | ||
+ | |||
+ | |||
+ | source $VSC_USIF_INCLUDE | ||
+ | |||
+ | set_compiler_single | ||
+ | |||
+ | VERSION=5.0.5 | ||
+ | EXTRACT_DIR=gnuplot-$VERSION | ||
+ | SRC=(${EXTRACT_DIR}.tar.gz) | ||
+ | |||
+ | prepare | ||
+ | |||
+ | do_cmd tar zxf ${SRC[0]} | ||
+ | do_cmd cd $EXTRACT_DIR | ||
+ | |||
+ | do_cmd ./configure --prefix=$INSTALL_DIR | ||
+ | do_cmd make -j 4 | ||
+ | do_cmd make install | ||
+ | |||
+ | footer ' >> $my_usif_path/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | * Prepare source directory: | ||
+ | < | ||
+ | mkdir -p $my_usif_path/ | ||
+ | </ | ||
+ | |||
+ | * Download .tar.gz from https:// | ||
+ | * Start the installation with: | ||
+ | < | ||
+ | source ~/.bashrc | ||
+ | source / | ||
+ | cd $my_usif_path/ | ||
+ | |||
+ | / | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Own Module Files ==== | ||
+ | |||
+ | * Prepend to MODULEPATH: | ||
+ | < | ||
+ | export MODULEPATH=$my_usif_path/ | ||
+ | </ | ||
+ | * Create Module file, check if ' | ||
+ | < | ||
+ | mkdir -p $my_usif_path/ | ||
+ | echo '# | ||
+ | ## | ||
+ | |||
+ | source $env(UMEA_INCLUDE)/ | ||
+ | source $env(UMEA_INCLUDE)/ | ||
+ | source $env(UMEA_INCLUDE)/ | ||
+ | set inst_base $env(HOME)/ | ||
+ | |||
+ | |||
+ | set verbosity 0 | ||
+ | set_versions | ||
+ | set base_path | ||
+ | set_paths $base_path $module_name | ||
+ | set_version_number 2 | ||
+ | ' > $my_usif_path/ | ||
+ | |||
+ | |||
+ | </ | ||
+ | * load the module, and check output for loading directory (this work now, as we have set MODULEPATH previously): | ||
+ | < | ||
+ | module load gcc/5.3 gnuplot/ | ||
+ | </ | ||
+ | * explicit loading: | ||
+ | < | ||
+ | module load $my_usif_path/ | ||
+ | module load gcc/5.3 / | ||
</ | </ | ||
- | - |