Installation error for bdsim
Issue #260
resolved
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)
-
-
reporter Ok. Thank you! I fixed it!
-
- changed status to resolved
Great, thanks. Glad that helped.
- Log in to comment
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
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
If this starts with
/opt/local
it belongs to macports.In fact, you can get the correct variant of the geant4 port with
for example. You can find out more about these options with: