A robust way to install Geant4 is to follow the installation guide for GATE: Geant4 installation instructions