diff --git a/create-env b/create-env index ee96913..441b8e9 100755 --- a/create-env +++ b/create-env @@ -39,46 +39,46 @@ export LANG=en_US.utf8 export PATH=$target_dir/bin:$PATH -#announce "Installing ROOT" -#cd /tmp -#wget -nv -O root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz https://root.cern/download/root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz -#tar xzf root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz -C /opt -#mv /opt/root $target_dir -#rm -rf root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz - -#announce "Installing HDF5" -#cd /tmp -#wget -nv -O hdf5-1.10.6.tar.gz https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.gz -#tar xzf hdf5-1.10.6.tar.gz -#cd hdf5-1.10.6 -#./configure --prefix=$target_dir --enable-threadsafe --disable-hl -#make -j4 -#make install -#cd /tmp -#rm -rf hdf5-1.10.6.tar.gz hdf5-1.10.6 - -#announce "Installing GEANT4" -#set -v -#cd /tmp -#wget -nv -O geant4.${geant4_version}.tar.gz http://cern.ch/geant4-data/releases/geant4.${geant4_version}.tar.gz -#tar xzf geant4.${geant4_version}.tar.gz -#cd geant4.${geant4_version} -#mkdir build -#cd build -#cmake -DCMAKE_INSTALL_PREFIX=$target_dir \ -# -DGEANT4_INSTALL_DATA=ON \ -# -DGEANT4_USE_OPENGL_X11=OFF \ -# -DGEANT4_BUILD_MULTITHREADED=OFF \ -# -DGEANT4_USE_QT=ON \ -# -DGEANT4_USE_GDML=OFF \ -# -DGEANT4_USE_RAYTRACER_X11=OFF \ -# -DGEANT4_USE_XM=OFF \ -# -DGEANT4_USE_HDF5=ON \ -# /tmp/geant4.${geant4_version} -#make -j8 -#make install -#cd /tmp -#rm -rf geant4.${geant4_version}.tar.gz geant4.${geant4_version} +announce "Installing ROOT" +cd /tmp +wget -nv -O root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz https://root.cern/download/root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz +tar xzf root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz -C /opt +mv /opt/root $target_dir +rm -rf root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz + +announce "Installing HDF5" +cd /tmp +wget -nv -O hdf5-1.10.6.tar.gz https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.gz +tar xzf hdf5-1.10.6.tar.gz +cd hdf5-1.10.6 +./configure --prefix=$target_dir --enable-threadsafe --disable-hl +make -j4 +make install +cd /tmp +rm -rf hdf5-1.10.6.tar.gz hdf5-1.10.6 + +announce "Installing GEANT4" +set -v +cd /tmp +wget -nv -O geant4.${geant4_version}.tar.gz http://cern.ch/geant4-data/releases/geant4.${geant4_version}.tar.gz +tar xzf geant4.${geant4_version}.tar.gz +cd geant4.${geant4_version} +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=$target_dir \ + -DGEANT4_INSTALL_DATA=ON \ + -DGEANT4_USE_OPENGL_X11=OFF \ + -DGEANT4_BUILD_MULTITHREADED=OFF \ + -DGEANT4_USE_QT=ON \ + -DGEANT4_USE_GDML=OFF \ + -DGEANT4_USE_RAYTRACER_X11=OFF \ + -DGEANT4_USE_XM=OFF \ + -DGEANT4_USE_HDF5=ON \ + /tmp/geant4.${geant4_version} +make -j8 +make install +cd /tmp +rm -rf geant4.${geant4_version}.tar.gz geant4.${geant4_version} # announce "Installing non-grid XENON software" announce "Installing additional software not present in base_environment" @@ -100,11 +100,6 @@ git submodule update --init --recursive pip install . cd .. -#git clone git@github.com:XENONnT/fuse -#cd fuse -#pip install . -#cd .. - # hack to make thisroot.sh work in the minimal /bin/sh used # when starting the Singularity container cp /tmp/thisroot.sh /opt/geant4/bin/thisroot.sh