Changes between Version 14 and Version 15 of Admin/StandardOperatingProcedures/InstallSoftwareFromSource


Ignore:
Timestamp:
May 14, 2019, 4:20:47 PM (6 years ago)
Author:
Mikael Brandström Durling
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Admin/StandardOperatingProcedures/InstallSoftwareFromSource

    v14 v15  
    3030  1. Publish software by running `grid-pubsw SOFTWARE VERSION TICKETID`. The script will ask for your password in order to commit some changes to the svn repository, as well as for setting permissions on software folders. This step will also close the software install ticket.
    3131
    32 
    33 
    34 Software installations, as modules, is a two step procedure.
    35 
    36 == "OldGrid" Software install from source package as a module ==
    37 
    38   1. `module load gridadmin`
    39   1. `module load modules`
    40   1. `gridsw`
    41   1. Dowload the software to /opt/sources
    42   1. Untar/unzip the source file (e.g. ```tar xzf sour-x.y.z.tar.gz```)
    43   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 ```&&```.
    44   1. Cd into source directory
    45   1. Configure and install software (e.g. for a typical package `./configure --prefix=/opt/sw/[package name]/[version]`
    46   1. `make`
    47   1. `make install`
    48   1. Create a modulefile called ```/opt/modulefiles/[package name]/[version]``` by copying and editing from some other module file, for example. See ```man modulefile```
    49   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]```
    50   1. If this is a new version installed just svn add the module file for the new version.
    51   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.
    52   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.