Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
doku:usif [2017/10/09 12:52] – 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. | ||
Line 53: | Line 53: | ||
+ | * Prepare source directory: | ||
+ | < | ||
+ | mkdir -p $my_usif_path/ | ||
+ | </ | ||
+ | * Download .tar.gz from https:// | ||
+ | * Start the installation with: | ||
+ | < | ||
+ | source ~/.bashrc | ||
+ | source / | ||
+ | cd $my_usif_path/ | ||
- | wget https://sourceforge.net/projects/gnuplot/files/ | + | /cm/shared/USIF/scripts/vsc_install.sh -c gcc/5.3 -s gnuplot-5.0.5.sh |
+ | </ | ||
+ | ==== 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 / | ||
+ | </ |