Glasgow Upgrading Ganga

From ScotGrid

To upgrade ganga on the GUScotGrid cluster:

  1. Login to svr020 as the user who will do the upgrade (currently mkenyon for Ganga5). (This cannot be done from disk037 as the paths are not the same and ganga likes to know where all its subcomponents are to work properly). As of Sept 2008, a new directory (/cluster/local/Ganga5) was created to hold Ganga 5 installations. This is because Ganga v5 appeared to be clobbering (and breaking) something needed in the external directory for Ganga v4 installations. Since root squash is on, this new directory had to be created from disk037, i.e. where /cluster/local is mounted (/cluster/disk2/local). Make sure that the directory permissions are set to 555: chmod -R 555 Ganga5/.
  2. Download the ganga installer script (see http://ganga.web.cern.ch/ganga/, currently this is here (http://ganga.web.cern.ch/ganga/download/ganga-install)).
  3. Run the installer:
 python ganga-install --extern=GangaAtlas,GangaNG,GangaCronus,GangaGUI,GangaPlotter --prefix=/cluster/local/Ganga5 VERSION

Where VERSION can be a number (e.g. 5.4.16) or the text LAST to grab the latest version.

To use this new version of ganga one will have to add /cluster/local/Ganga/install/VERSION/bin to the path. Do this by hand first and check it works as expected. When you are satisfied that the version has upgraded sanely, then change the profile.d scripts in svr031:/var/cfengine/inputs/skel/clusterui/etc/profile.d/ganga.{sh,csh}.

Note that currently (Sept 2008) we are maintaining two versions of Ganga. Calling 'ganga' will run verison 4.4.15 whereas calling 'ganga5' will run the latest release of Ganga 5. This is managed by alias trickery in the svr031:/var/cfengine/inputs/skel/clusterui/etc/profile.d/ganga.{sh,csh} files.