No such file or directory root head file and "G4MuonMinusCaptureAtRest.hh" of PhysicsList.cc

/home/cheng/software/root/build_root/include/RtypesCore.h:23:10: fatal error: ROOT/RConfig.h: No such file or directory
#include <ROOT/RConfig.h>
^~~~~~~~~~~~~~~~
compilation terminated.
/home/cheng/software/geant4/program/project-name/src/NBDPhysicsList.cc:186:10: fatal error: G4MuonMinusCaptureAtRest.hh: No such file or directory
#include “G4MuonMinusCaptureAtRest.hh”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The system is ubuntu18.04, the program running environment is geant410.05 and root6.14.06