Skip to content

Installing Prerequisites

Alex Austregesilo edited this page Jan 28, 2019 · 42 revisions

Installing prerequisites

There are a number of packages which must be preinstalled on your system before building sim-recon and its listed dependencies from source code or using the pre-compiled binaries. To install these requirements using your native package manager you must have sudoer privileges. Otherwise you will need to ask your system administrator to install them for you.

CentOS/RHEL 6

sudo sh -c "yum update -y && yum install -y centos-release-SCL epel-release \
    centos-release-scl-rh \
    && yum install -y python27 git make gcc-c++ gcc binutils cmake3 scons \
    libX11-devel libXpm-devel libXft-devel libXext-devel mesa-libGLU-devel \
    libXi-devel libXmu-devel gcc-gfortran imake patch expat-devel boost-devel \
    blas-devel lapack-devel openmotif-devel mysql-devel sqlite-devel \
    fftw-devel bzip2 bzip2-devel tcsh devtoolset-3-toolchain gsl-devel \
    && ln -s liblapack.a /usr/lib64/liblapack3.a"

CentOS/RHEL 7

sudo sh -c "yum update -y && yum install -y epel-release && yum install -y \
    git make gcc-c++ gcc binutils python-devel cmake3 scons boost-devel \
    libX11-devel libXpm-devel libXft-devel libXext-devel mesa-libGLU-devel \
    gcc-gfortran imake patch expat-devel libXi-devel libXmu-devel \
    mysql-devel sqlite-devel fftw-devel bzip2 bzip2-devel tcsh \
    blas-devel blas-static lapack-devel lapack-static openmotif-devel gsl-devel \
    && ln -s liblapack.a /usr/lib64/liblapack3.a"

Ubuntu 14.04/16.04 LTS

sudo sh -c "apt-get update && apt-get install -y curl git dpkg-dev make g++ gcc \
   binutils libx11-dev libxpm-dev libxft-dev libxext-dev libfftw3-dev tcsh \
   python-dev cmake scons gfortran xutils-dev libxt-dev libboost-python-dev \
   liblapack-dev libblas-dev libmotif-dev expect libgl1-mesa-dev libxmu-dev \
   libxi-dev libglew-dev libmysqlclient-dev sqlite3 libsqlite3-dev libbz2-dev \
   libgsl-dev autoconf libtool \
   && ln -s make /usr/bin/gmake \
   && ln -s liblapack.a /usr/lib/liblapack3.a"

Mac OS X 10.10+

cernlib and the simulation parts of sim-recon that depend on it are disabled on macOS.

Install Xcode from the App Store and then install the Xcode command-line tools:

xcode-select --install

Next, install XQuartz.

Lastly, install Homebrew by following the instructions at http://brew.sh, and use brew to install the remaining prerequisites:

brew install scons cmake gcc mariadb boost-python

Alternatively, you can manually download/install packages from the following websites:

  1. SCons
  2. GFortran
  3. CMake

Check that scons and cmake are in your PATH before using hdpm to build packages.