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-8-gcc-gfortran devtoolset-8-gcc devtoolset-8-gcc-c++

Activate the compiler provided by devtoolset-8 as follows:

scl enable devtoolset-8 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 after 18.1: 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 distribution is gcc 8.3.1, provided by devtoolset-8.