RedHat / CentOS system prerequisites

yum install bison curl blas bzip2-devel bzip2 flex fontconfig \
    freetype-devel gcc-c++ gcc-gfortran git libuuid-devel \
    libXext libXrender libXt-devel make openssl-devel patch perl \
    readline-devel tar zlib-devel ncurses-devel cmake glib2-devel \
    java-1.8.0-openjdk gettext perl-ExtUtils-MakeMaker

Prefix the yum command with sudo if necessary.


New since 11.0: The minimum gcc version required to compile the LSST Science Pipelines is gcc 4.8. If you are using our previous factory platform, RedHat/CentOS 6, and you are unable to upgrade to version 7 (which comes with gcc 4.8 as default) consult the section below on upgrading compilers in legacy Linux.

Upgrading compilers for legacy RedHat / CentOS 6

The minimum gcc version required to compile the Stack is gcc 4.8. This comes as standard in the LSST “factory” platform, Red Hat / CentOS 7.

On our previous factory platform, Red Hat / CentOS 6, you will need to use a more current version of gcc that what is available with your system. If you can go to Red Hat 7, we recommend that you do; if you cannot, we recommend that you use a newer gcc version for the stack by using a Software Collection (SCL) with a different version of devtoolset. This will enable you to safely use a different version of gcc (4.9) for the stack than that used by your operating system (4.4).

First, install devtoolset-3 (after the installing the standard pre-requisites (above)):

sudo yum install -y
sudo yum install -y
sudo yum install -y
sudo yum install -y scl-utils
sudo yum install -y devtoolset-3

Then enable devtoolset-3 by including this line in your ~/.bash_profile:

scl enable devtoolset-3 bash