While running the geant4 example B1, I am getting an error. Could anyone pls help?

I am using Ubuntu 20…04.4 LTS and the version of geant4 is 10.07.

I am attaching the error file here.
error.txt (45.5 KB)

1 Like

Do you have the error running all examples?

I am guessing that your path to your geant4 download is not defined. Are you providing the DGeant4_DIR when you run cmake? The step before make

Yes I had provided that.

Now when I tried to run example B3a, the following error occurred while running configure in ccmake:

CMake Error at CMakeLists.txt:17 (find_package):
By not providing “FindGeant4.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “Geant4”, but
CMake did not find one.

Could not find a package configuration file provided by “Geant4” with any
of the following names:


Add the installation prefix of “Geant4” to CMAKE_PREFIX_PATH or set
“Geant4_DIR” to a directory containing one of the above files. If “Geant4”
provides a separate development package or SDK, be sure it has been

Configuring incomplete, errors occurred!

Could you pls suggest what to do here to successfully compile the program?