| 1 | == Software install from source package == |
| 2 | |
| 3 | 1. ```sg mykopat-grid-admin``` |
| 4 | 1. Load modulefile helpers: ```module load modules``` |
| 5 | 1. Dowload the software to /opt/sources |
| 6 | 1. Untar/unzip the source file (e.g. ```tar xzf sour-x.y.z.tar.gz```) |
| 7 | 1. Create install dir, and populate with standard directories: ```mkdir -p /opt/sw/[package name]/[version] && ( cd /opt/sw/[package name]/[version] && mkroot -m )``` |
| 8 | 1. Cd into source directory |
| 9 | 1. Configure and install software (e.g. for a typical package ```./configure --prefix=/opt/sw/[package name]/[version] && make && make install``` |
| 10 | 1. Create a modulefile called ```/opt/modulefiles/[package name]/[version]``` by copying and editing from some other module file, for example. See ```man modulefile``` |
| 11 | 1. If some default version should be there, create/modify ```/opt/modulefiles/[package name]/.version``` to specify default. |