RedHat / CentOS system prerequisitesΒΆ

First install the packages required to build the distribution products:

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

Prefix the yum command with sudo if necessary.

Then install the CentOS Linux Software Collections release file:

yum install centos-release-scl

And finally the latest compiler packages:

yum install devtoolset-6-gcc-gfortran devtoolset-6-gcc devtoolset-6-gcc-c++

Activate the compiler provided by devtoolset-6 as follows:

scl enable devtoolset-6 bash

Check that the gcc compiler is version 6.3 or later by running:

gcc -v

Now you are ready to proceed with the installation.

Note

New since 15.0: The gcc compiler to be used must support C++ 14. The gcc compiler version used in both Red Hat / CentOS 6 and 7 to verify the LSST Science Pipelines 15.0 distribution is gcc 6.3.1, provided by devtoolset-6.