Skip to content
Snippets Groups Projects
Commit 7a0610f1 authored by Vladimir Kulikovskiy's avatar Vladimir Kulikovskiy
Browse files

Machine for OMGsim compillation prepared

parent b10efa01
No related branches found
No related tags found
No related merge requests found
FROM docker.km3net.de/base/centos-full:7
MAINTAINER Vladimir Kulikovskiy <vkulikovskiy@km3net.de>
# install GCC v5
# add additional repo
yum install -y centos-release-scl
# get devtoolset from this repo
yum install -y devtoolset-4-gcc* devtoolset-4-gcc-gfortran devtoolset-4-binutils
. /opt/rh/devtoolset-4/enable
# create folder for additional non-standard CentOS7 software
mkdir $HOME/OMGsim
# Make libconfig
cd $HOME/OMGsim && wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz && tar xf libconfig-1.7.2.tar.gz -C /tmp && rm libconfig-1.7.2.tar.gz
export LIBCONFIG_ROOT=`pwd`/libconfig-1.7.2 && cd /tmp/libconfig-1.7.2/ && ./configure --prefix $LIBCONFIG_ROOT && make && make install && cd -
rm -rf /tmp/libconfig-1.7.2/
export LD_LIBRARY_PATH=${LIBCONFIG_ROOT}/lib:${LD_LIBRARY_PATH}
export CPLUS_INCLUDE_PATH=${LIBCONFIG_ROOT}/include
# Make Geant4
yum install -y libX11-devel libXmu-devel motif motif-devel
cd $HOME/OMGsim && wget http://cern.ch/geant4-data/releases/geant4.10.01.p03.tar.gz && tar xf geant4.10.01.p03.tar.gz
mkdir geant4.10.01.p03-build && cd geant4.10.01.p03-build && cmake -DCMAKE_INSTALL_PREFIX=../geant4.10.01.p03-install ../geant4.10.01.p03 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_XM=ON && make -j4 install > /dev/null
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment