wiki:Admin/StandardOperatingProcedures/InstallSoftwareFromSource

Version 6 (modified by les, 11 years ago) (diff)

--

Software install from source package as a module

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