Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
doku:usif [2017/10/09 12:43] – markus | doku:usif [2017/10/09 13:13] – [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. | ||
Line 27: | Line 27: | ||
</ | </ | ||
+ | * 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: | ||
+ | < | ||
+ | </ |