Changes between Version 6 and Version 7 of Admin/StandardOperatingProcedures/InstallSoftwareFromSource


Ignore:
Timestamp:
Jan 29, 2014, 12:06:38 PM (11 years ago)
Author:
Mikael Brandström Durling
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Admin/StandardOperatingProcedures/InstallSoftwareFromSource

    v6 v7  
    33  1. `module load gridadmin`
    44  1. `module load module`
    5   1. `gridadmin`
     5  1. `gridsw`
    66  1. Dowload the software to /opt/sources
    77  1. Untar/unzip the source file (e.g. ```tar xzf sour-x.y.z.tar.gz```)
    8   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. 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 ```&&```.
    99  1. Cd into source directory
    1010  1. Configure and install software (e.g. for a typical package `./configure --prefix=/opt/sw/[package name]/[version]`
     
    1212  1. `make install`
    1313  1. Create a modulefile called ```/opt/modulefiles/[package name]/[version]``` by copying and editing from some other module file, for example. See ```man modulefile```
    14   1. If some default version should be there, create/modify ```/opt/modulefiles/[package name]/.version``` to specify default.
     14  1. 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]```
     15  1. If this is a new version installed just svn add the module file for the new version.
     16  1. 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.
     17  1. 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.