-
Notifications
You must be signed in to change notification settings - Fork 2
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.
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"
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"
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"
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:
Check that scons
and cmake
are in your PATH before using hdpm
to build packages.