Wednesday, June 9, 2010

How to Install New Versions of Octave on Enterprise Linux

This how-to is specifically for installing Octave 3.2.3 on CentOS 5.5 but should work on any recent version of RHEL or RHEL clones, with a few minor variations. The version of Octave to be installed depends on whichever version is in the Black Op Software repository.

Preliminary steps

To be able to install the octave package through Yum, the RPMForge and Black Op Software repositories need to be installed and it is recommended to remove the Extra Packages for Enterprise Linux repository and any installed packages from it as they are likely to conflict with the Black Op Software package. This is because the Black Op packages are built against the RPMForge packages which are compiled with different features than the ELEP packages.

Installing the RPMForge repository

This is paraphrased from the RPMForge wiki and the CentOS wiki.

  1. Download the rpmforge-release package.

  2. Install the repository GPG public key:

    rpm --import
  3. Check the signature of the downloaded package with

    rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm
  4. Install the rpm using

    rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.*.rpm
  5. Edit /etc/yum.repos.d/rpmforge.repo and set

    enabled = 1
Installing the Black Op Software repository

This is paraphrased from the Black Op Software wiki.

  1. Download the blackop-repo package from here.

    Note: there is only one package because it is architecture independent (noarch)

  2. Install the Black Op Software GPG public key:

    rpm --import
  3. Check the signature of the downloaded package with

    rpm -K blackop-el5-repo-1.0-2.noarch.rpm
  4. Install the rpm using

    rpm -Uvh blackop-el5-repo-1.0-2.noarch.rpm
  5. If yum-priorities is installed, the priority of the blackop repository needs to be set fairly high, otherwise there will be conflicts between the base gnuplot package and the one provided by Black Op Software.

Installing the octave package and troubleshooting

This should now be as simple as running, as root,

yum install octave

If there are package conflicts or related errors, make sure that any of the involved packages are installed only from the rpmforge and blackop repositories. Try removing the problem packages and reinstalling them to make sure that they are coming from either the rpmforge or blackop repositories.

No comments: