Geant4 installation problem

I cannot seem to get install directory built. I have tried two methods:
I set up the environement following the first step in the link below.

https://twiki.cern.ch/twiki/bin/view/Main/G4Training

Then I continued installation using this:

Building and Installing from Source — Geant4 Installation Guide 11.2 documentation
And also downloaded cmake separately just in case.

I’ve tried both the methods separately but nothing seems to work I never get the install directory built. Here is what it looks like :

Blockquote

esh@work:/$ cd /home/esh/Downloads/geant4.10.07-build
esh@work:~/Downloads/geant4.10.07-build$ cmake -DCMAKE_INSTALL_PREFIX=/home/esh/Downloads/geant4.10.07-install /home/esh/Downloads/geant4.10.07
– Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version “2.2.9”)
– Pre-configuring dataset G4NDL (4.6)
– Pre-configuring dataset G4EMLOW (7.13)
– Pre-configuring dataset PhotonEvaporation (5.7)
– Pre-configuring dataset RadioactiveDecay (5.6)
– Pre-configuring dataset G4PARTICLEXS (3.1)
– Pre-configuring dataset G4PII (1.3)
– Pre-configuring dataset RealSurface (2.2)
– Pre-configuring dataset G4SAIDDATA (2.0)
– Pre-configuring dataset G4ABLA (3.1)
– Pre-configuring dataset G4INCL (1.0)
– Pre-configuring dataset G4ENSDFSTATE (2.3)
WARNING
Geant4 has been pre-configured to look for datasets
in the directory:

/home/esh/Downloads/geant4.10.07-install/share/Geant4-10.7.0/data

but the following datasets are NOT present on disk at
that location:

G4NDL (4.6)
G4EMLOW (7.13)
PhotonEvaporation (5.7)
RadioactiveDecay (5.6)
G4PARTICLEXS (3.1)
G4PII (1.3)
RealSurface (2.2)
G4SAIDDATA (2.0)
G4ABLA (3.1)
G4INCL (1.0)
G4ENSDFSTATE (2.3)

If you want to have these datasets installed automatically
simply re-run cmake and set the GEANT4_INSTALL_DATA
variable to ON. This will configure the build to download
and install these datasets for you. For example, on the
command line, do:

cmake -DGEANT4_INSTALL_DATA=ON <otherargs>

The variable can also be toggled in ccmake or cmake-gui.
If you're running on a Windows system, this is the best
solution as CMake will unpack the datasets for you
without any further software being required

Alternatively, you can install these datasets manually
now or after you have installed Geant4. To do this,
download the following files:

https://cern.ch/geant4-data/datasets/G4NDL.4.6.tar.gz
https://cern.ch/geant4-data/datasets/G4EMLOW.7.13.tar.gz
https://cern.ch/geant4-data/datasets/G4PhotonEvaporation.5.7.tar.gz
https://cern.ch/geant4-data/datasets/G4RadioactiveDecay.5.6.tar.gz
https://cern.ch/geant4-data/datasets/G4PARTICLEXS.3.1.tar.gz
https://cern.ch/geant4-data/datasets/G4PII.1.3.tar.gz
https://cern.ch/geant4-data/datasets/G4RealSurface.2.2.tar.gz
https://cern.ch/geant4-data/datasets/G4SAIDDATA.2.0.tar.gz
https://cern.ch/geant4-data/datasets/G4ABLA.3.1.tar.gz
https://cern.ch/geant4-data/datasets/G4INCL.1.0.tar.gz
https://cern.ch/geant4-data/datasets/G4ENSDFSTATE.2.3.tar.gz

and unpack them under the directory:

/home/esh/Downloads/geant4.10.07-install/share/Geant4-10.7.0/data

As we supply the datasets packed in gzipped tar files,
you will need the 'tar' utility to unpack them.

Nota bene: Missing datasets will not affect or break
           compilation and installation of the Geant4
           libraries.

– Looking for sys/types.h
– Looking for sys/types.h - found
– Looking for stdint.h
– Looking for stdint.h - found
– Looking for stddef.h
– Looking for stddef.h - found
– Check size of off64_t
– Check size of off64_t - done
– Looking for fseeko
– Looking for fseeko - found
– Looking for unistd.h
– Looking for unistd.h - found
– Looking for pthread.h
– Looking for pthread.h - found
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– Check if compiler accepts -pthread
– Check if compiler accepts -pthread - yes
– Found Threads: TRUE
– The following Geant4 features are enabled:
GEANT4_BUILD_CXXSTD: Compiling against C++ Standard ‘11’
GEANT4_USE_SYSTEM_EXPAT: Using system EXPAT library

– Configuring done
– Generating done
– Build files have been written to: /home/esh/Downloads/geant4.10.07-build
esh@work:~/Downloads/geant4.10.07-build$ cmake -DCMAKE_INSTALL_PREFIX=/home/esh/Downloads/geant4.10.07-install /home/esh/Downloads/geant4.10.07
– Pre-configuring dataset G4NDL (4.6)
– Pre-configuring dataset G4EMLOW (7.13)
– Pre-configuring dataset PhotonEvaporation (5.7)
– Pre-configuring dataset RadioactiveDecay (5.6)
– Pre-configuring dataset G4PARTICLEXS (3.1)
– Pre-configuring dataset G4PII (1.3)
– Pre-configuring dataset RealSurface (2.2)
– Pre-configuring dataset G4SAIDDATA (2.0)
– Pre-configuring dataset G4ABLA (3.1)
– Pre-configuring dataset G4INCL (1.0)
– Pre-configuring dataset G4ENSDFSTATE (2.3)
WARNING
Geant4 has been pre-configured to look for datasets
in the directory:

/home/esh/Downloads/geant4.10.07-install/share/Geant4-10.7.0/data

but the following datasets are NOT present on disk at
that location:

G4NDL (4.6)
G4EMLOW (7.13)
PhotonEvaporation (5.7)
RadioactiveDecay (5.6)
G4PARTICLEXS (3.1)
G4PII (1.3)
RealSurface (2.2)
G4SAIDDATA (2.0)
G4ABLA (3.1)
G4INCL (1.0)
G4ENSDFSTATE (2.3)

If you want to have these datasets installed automatically
simply re-run cmake and set the GEANT4_INSTALL_DATA
variable to ON. This will configure the build to download
and install these datasets for you. For example, on the
command line, do:

cmake -DGEANT4_INSTALL_DATA=ON <otherargs>

The variable can also be toggled in ccmake or cmake-gui.
If you're running on a Windows system, this is the best
solution as CMake will unpack the datasets for you
without any further software being required

Alternatively, you can install these datasets manually
now or after you have installed Geant4. To do this,
download the following files:

https://cern.ch/geant4-data/datasets/G4NDL.4.6.tar.gz
https://cern.ch/geant4-data/datasets/G4EMLOW.7.13.tar.gz
https://cern.ch/geant4-data/datasets/G4PhotonEvaporation.5.7.tar.gz
https://cern.ch/geant4-data/datasets/G4RadioactiveDecay.5.6.tar.gz
https://cern.ch/geant4-data/datasets/G4PARTICLEXS.3.1.tar.gz
https://cern.ch/geant4-data/datasets/G4PII.1.3.tar.gz
https://cern.ch/geant4-data/datasets/G4RealSurface.2.2.tar.gz
https://cern.ch/geant4-data/datasets/G4SAIDDATA.2.0.tar.gz
https://cern.ch/geant4-data/datasets/G4ABLA.3.1.tar.gz
https://cern.ch/geant4-data/datasets/G4INCL.1.0.tar.gz
https://cern.ch/geant4-data/datasets/G4ENSDFSTATE.2.3.tar.gz

and unpack them under the directory:

/home/esh/Downloads/geant4.10.07-install/share/Geant4-10.7.0/data

As we supply the datasets packed in gzipped tar files,
you will need the 'tar' utility to unpack them.

Nota bene: Missing datasets will not affect or break
           compilation and installation of the Geant4
           libraries.

– The following Geant4 features are enabled:
GEANT4_BUILD_CXXSTD: Compiling against C++ Standard ‘11’
GEANT4_USE_SYSTEM_EXPAT: Using system EXPAT library

– Configuring done
– Generating done
– Build files have been written to: /home/esh/Downloads/geant4.10.07-build

Have you run make followed by make install as described in the Install Guide?

Yes I’ve followed all the instructions upto the -DCMAKE_INSTALL_PREFIX …

@saoirsereids

After running

cmake -DCMAKE_INSTALL_PREFIX=/home/esh/Downloads/geant4.10.07-install /home/esh/Downloads/geant4.10.07

Did you run make and make install?

If you want I can help you with the conda install.

conda Install

cd $HOME/Downloads
sudo apt install -y wget
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda create -n geant4 -y
conda activate geant4
conda install -y compilers \
	make \
	cmake \
	geant4 \
	root

It will install Geant4 v10.6.3.

After running cmake, you need to run the build and install steps, so the full set of commands would be:

cmake -DCMAKE_INSTALL_PREFIX=/home/esh/Downloads/geant4.10.07-install /home/esh/Downloads/geant4.10.07

then

make

then

make install

Without these steps you won’t get the install directory or its contents.