Problem in Installation of Geant4

For future posts, please read the guide to formatting text and particularly code/commands here: How to post code snippets. A wall of text of commands etc is very hard to understand and thus provide help.

I’m not sure exactly what sequence of commands you’ve used to build exampleB1 as this error is not usually present when building with CMake as we’ve suggested. That said, the cause is due to the executable not finding the libraries, and it should be possible to rectify this by doing:

cd ~/Documents/exampleB1-build

then

source ~/Documents/geant4-v11.3.2-install/bin/geant4.sh

then try running the example again:

./exampleB1