Installation error for bdsim

Issue #260 resolved
liuxu created an issue

Dear all,

I'm a new user of bdsim. Today, I build the bdsim on the macos high sierra 10.13. While there exists a problem: "BDSIM requires Geant4 to be compiled using the system CLHEP so it's the same as BDSIM for strong reproducibility - please reconfigure and reinstall Geant4". How can I solve this?

Firstly, I installed cmake, clhep, geant4, flex and bison using the macport and this warning appears. Then I tried to build clhep and geant4 manually. While this problem is still existing.

Thank you and best regards, Xu Liu

Comments (3)

  1. Laurie Nevay

    Dear Xu Liu,

    This error means that your installation of Geant4 was compiled using its own internal distribution of CLHEP. You should go back to your Geant4 build directory and reconfigure it using ccmake to switch "GEANT4_USE_SYSTEM_CLHEP" to ON. You will then need to recompile (typically quicker than the first time) and install geant4 again.

    You can see further instructions here: http://www.pp.rhul.ac.uk/bdsim/manual/installation.html#geant4-installation-guide

    From this point on, BDSIM should configure without problem.

    It is also possible you still find the geant4 installation in macports. You can make sure it's not this one by doing

    port deactivate geant4portname
    

    where 'geant4portname' is the exact name of the port for geant4. Or you can find out which one by echoing the path to the data files. For example

    > echo $G4LEDATA
    > /Users/nevay/physics/packages/geant4.10.04.p02-install/share/Geant4-10.4.2/data/G4EMLOW7.3
    

    If this starts with /opt/local it belongs to macports.

    In fact, you can get the correct variant of the geant4 port with

    sudo port install geant4.10.4 +clhep +gdml +qt5
    

    for example. You can find out more about these options with:

    port variants geant4.10.4
    
  2. Log in to comment