Software install from source package as a module
module load gridadmin
module load modules
gridsw
- Dowload the software to /opt/sources
- Untar/unzip the source file (e.g.
tar xzf sour-x.y.z.tar.gz
)
- Create install dir, and populate with standard directories:
mkdir -p /opt/sw/[package name]/[version] && ( cd /opt/sw/[package name]/[version] && mkroot -m )
In most cases it is enough to create the base directory, i.e. skip the second half including and after
&&
.
- Cd into source directory
- Configure and install software (e.g. for a typical package
./configure --prefix=/opt/sw/[package name]/[version]
make
make install
- Create a modulefile called
/opt/modulefiles/[package name]/[version]
by copying and editing from some other module file, for example. See
man modulefile
- If this is the first version of the package installed add the whole package to svn by doing
cd /opt/modulefiles/ && svn add [package name]
- If this is a new version installed just svn add the module file for the new version.
- Commit the change to svn,
svn commit [modulefile or module directory]
You will get a nano session to write a descriptive comment on what you have done. Check carefully that only the files you have modified are listed below the divider! If more files are there, quit the editor without saving any changes and make sure that you only give svn ci the files you want to commit.
- If some default version should be there, create/modify
/opt/modulefiles/[package name]/.version
to specify default. (Check the syntax in some other module directory). Don't forget to check in the .version file in SVN too.
Download in other formats: