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

Update genie:3.0.2

parent b9c8614e
Branches
No related tags found
No related merge requests found
......@@ -17,13 +17,28 @@ FROM docker.km3net.de/base/centos-full:7
#ROOT with PYTHIA (Pythia libs need to be compiled)
#remove existing ROOT installation
#ROOT5
#RUN source /etc/profile.d/genie.sh && cd / && rm -rf /usr/local/root && \
#curl -L https://root.cern.ch/download/root_v5.34.36.source.tar.gz > root.tar.gz && \
#tar xvf root.tar.gz -C /usr/local/ && rm root.tar.gz && cd /usr/local/root && \
#./configure --fail-on-missing --with-pythia6-libdir=$PYTHIA6 --enable-pythia6 --enable-cxx11 && \
#make && \
#echo "cd /usr/local/root && source bin/thisroot.sh && cd" > /etc/profile.d/root_env.sh && cd
#ROOT6
RUN yum install -y cmake3
RUN source /etc/profile.d/genie.sh && cd / && rm -rf /usr/local/root && \
curl -L https://root.cern.ch/download/root_v5.34.36.source.tar.gz > root.tar.gz && \
tar xvf root.tar.gz -C /usr/local/ && rm root.tar.gz && cd /usr/local/root && \
./configure --fail-on-missing --with-pythia6-libdir=$PYTHIA6 --enable-pythia6 --enable-cxx11 && \
export ROOT_VERSION=6.14.06 && \
cd /tmp && \
wget https://root.cern.ch/download/root_v$ROOT_VERSION.source.tar.gz && \
tar xvzf root_v$ROOT_VERSION.source.tar.gz && cd root-$ROOT_VERSION && \
mkdir obj && cd obj && \
cmake3 .. -Dpythia6=ON -DPYTHIA6_LIBRARY=/pythia6428/libPythia6.so && \
make && \
echo "cd /usr/local/root && source bin/thisroot.sh && cd" > /etc/profile.d/root_env.sh && cd
cd .. && \
mv obj /opt/root-$ROOT_VERSION && \
rm -rf /tmp/root* && \
echo "cd /opt/root-$ROOT_VERSION && source bin/thisroot.sh && cd" >> /etc/profile.d/root_env.sh && cd
#GENIE
#it looks for libgfortran in /usr/lib64, otherwise linking will fail
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment