I get this error message while installing Geant4.10.07
me@hp:~/Softwares/Geant4/geant4.10.07/build$ cmake ..
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake:89 (include):
include could not find requested file:
/home/me/Softwares/Geant4/geant4.10.07/cmake/Modules/G4MakeRules_cxx.cmake
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:51 (include):
include could not find requested file:
G4CMakeMain
-- Configuring incomplete, errors occurred!
See also "/home/me/Softwares/Geant4/geant4.10.07/build/CMakeFiles/CMakeOutput.log".
Dear Sir,
I also have some problems when I installed the old Geant4 version. My mistakes are data downloading or pre-packages that weren’t suitable for Ubuntu version 22.04.
In my opinion, Ubuntu 20.04 is the best version. I never met any mistakes when installing Geant4 on this version.
That is a very weird error - could you double check that the file /home/me/Softwares/Geant4/geant4.10.07/cmake/Modules/G4MakeRules_cxx.cmake is physically present and that it is readable by user, group and world please?