# Notes on how I installed Geant4 # High Sierra 10.13.6 # Clang Apple LLVM version 10.0.0 (clang-1000.10.44.4) # XQuartz 2.7.11 # conda 4.7.12 # CMAKE # Downloaded and installed from: https://cmake.org/download/ # ROOT cd /Users/diana/Documents/opt git clone https://github.com/root-project/root.git cd root mkdir build cd build cmake .. make -j 4 source /Users/diana/Documents/opt/root/build/bin/thisroot.sh # BOOST and XercesC conda install -c conda-forge boost conda install -c conda-forge xerces-c # Geant4 git clone https://gitlab.cern.ch/geant4/geant4.git cd geant4 GEANT4_DIR=/Users/diana/Documents/opt/geant4 GEANT4_INSTALL=$GEANT4_DIR/geant4-install mkdir $GEANT4_INSTALL GEANT4_BUILD=$GEANT4_DIR/geant4-build mkdir $GEANT4_BUILD cd $GEANT4_BUILD cmake -DCMAKE_INSTALL_PREFIX=$GEANT4_INSTALL -DGEANT4_USE_OPENGL_X11=ON $GEANT4_BUILD # We can not activate -DGEANT4_BUILD_MULTITHREADED=ON for the python interface make -j 4 make install # Python interface of Geant4 export GEANT4_INSTALL=/Users/diana/Documents/opt/geant4/geant4-install cd ../environments/g4py/ mkdir build cd build BOOST_DIR=/anaconda3/pkgs/libboost-1.67.0-hebc422b_4 XERCESC_DIR=/anaconda3/pkgs/xerces-c-3.2.2-h4db8090_1003 BOOST_ROOT=$BOOST_DIR cmake -DBOOST_ROOT=$BOOST_DIR -DBoost_INCLUDE_DIR=$BOOST_DIR/include -DBOOST_LIBRARY=$BOOST_DIR/lib -DXERCESC_INCLUDE_DIR=$XERCESC_DIR/include -DXERCESC_LIBRARY=$XERCESC_DIR/lib .. #make -j 4 #make install