Installing Mantid Via Yum
From MantidProject
On RHEL5 it is now possible to install Mantid and all the requied RPMs via the ISIS yum prepository. Other Linux systems will be added in due course. If you wish to rebuild Mantid from source, download the RHEL5 Source RPMs (release, nightly build) and also install any additional libraries.
Setup
RHEL5
Important note: following these procedures will update some default RHEL5 packages with newer versions on your system. For a full list of possible packages see the RHEL5 Source RPMs (release, nightly build). Nothing will be modified on your system until you type yum install Mantid and, at that point, you will be given the list of changed packages and have the option to decide whether to proceed.
First you need to enable the Extra Packages for Enterprise Linux (EPEL) by installing the relevant rpm
Next you need to create the file /etc/yum.repos.d/isis-rhel.repo with the following content
[isis-rhel] name=ISIS Software Repository for Redhat Enterprise Linux $releasever - $basearch baseurl=http://yum.isis.rl.ac.uk/rhel/$releasever/$basearch failovermethod=priority enabled=1 gpgcheck=0 [isis-rhel-debuginfo] name=ISIS Software Repository for Redhat Enterprise Linux $releasever - $basearch - Debug baseurl=http://yum.isis.rl.ac.uk/rhel/$releasever/$basearch/debug failovermethod=priority enabled=1 gpgcheck=0 [isis-rhel-source] name=ISIS Software Repository for Redhat Enterprise Linux $releasever - $basearch - Source baseurl=http://yum.isis.rl.ac.uk/rhel/$releasever/SRPMS failovermethod=priority enabled=0 gpgcheck=0
If you want to automatically install nightly development builds, also create /etc/yum.repos.d/isis-rhel-testing.repo with the following content
[isis-rhel-testing] name=ISIS Software Repository for Redhat Enterprise Linux $releasever - $basearch baseurl=http://yum.isis.rl.ac.uk/rhel/testing/$releasever/$basearch failovermethod=priority enabled=1 gpgcheck=0 [isis-rhel-testing-debuginfo] name=ISIS Software Repository for Redhat Enterprise Linux $releasever - $basearch - Debug baseurl=http://yum.isis.rl.ac.uk/rhel/testing/$releasever/$basearch/debug failovermethod=priority enabled=1 gpgcheck=0 [isis-rhel-testing-source] name=ISIS Software Repository for Redhat Enterprise Linux $releasever - $basearch - Source baseurl=http://yum.isis.rl.ac.uk/rhel/testing/$releasever/SRPMS failovermethod=priority enabled=0 gpgcheck=0
Finally you need to edit /etc/yum.conf
- If you are based at Rutherford lab and do not already have a proxy set, add the line:
proxy=http://wwwcache.rl.ac.uk:8080
- If, when you do a yum update, you get errors about mismatched metadata checksums etc, also add the line
http_caching=packages
Installing Mantid
You should now just need to type:
yum install Mantid
This will install Mantid into /opt/Mantid and add bash/csh files to /etc/profile.d so that next time you log in / create a terminal it will have the correct path to MantidPlot defined.
