G4beamline Installation problems

117 views
Skip to first unread message

M lng

unread,
Jan 29, 2024, 10:26:11 PM1/29/24
to G4Beamline
Dear G4beamline
    When I run G4beamline example after installing it with build.txt,  I get the following errors(Although there is an error, the program can run):

1705286424601.jpg
1705286480203.jpg
and my environment variables are as follows:

export GSL_DIR=/usr
export FFTW_DIR=/usr
export ROOTSYS=/home/ln/root
MPI_HOME=/usr/local
export PATH=${MPI_HOME}/bin:$PATH
export LD_LIBRARY_PATH=${MPI_HOME}/lib:$LD_LIBRARY_PATH
export MANPATH=${MPI_HOME}/share/man:$MANPATH
export GEANT4_DIR=/home/ln/geant4
export G4BL_DIR=/home/ln/G4beamline-3.08
source /home/ln/G4beamline-3.08/bin/g4bl-setup.sh
source /home/ln/geant4/bin/geant4.sh
source /home/ln/root/bin/thisroot.sh

When I removed the last environment variable, ROOT didn't start properly, but G4beamline returned to normal:

1705052900796.jpg

I am a beginner, thanks for your patience.
Sincerely,
Li, Ning

Eremey Valetov

unread,
Jan 29, 2024, 11:22:41 PM1/29/24
to G4Beamline, M lng
Dear Li Ning,

It appears that you have ROOT installed in two different locations: /home/ln/root and /home/user/root. This could potentially mean that each directory contains a different version of ROOT.

For a seamless operation, if you're utilising a pre-built G4beamline distribution, please ensure that the ROOT version at runtime aligns with the version required by this distribution. In case you compiled G4beamline from the source, the ROOT version used during runtime should correspond to the version with which Geant4 and G4beamline were originally compiled. When compiling from source code, it's important to remember that not all ROOT versions are compatible with every set of Geant4 and G4beamline versions.

Kind regards,
Eremey

M lng

unread,
Jan 30, 2024, 11:08:41 PM1/30/24
to G4Beamline, Eremey Valetov, M lng
Dear Eremey,

Thank you very much for your answer!

Since I need multiple threads, I chose to compile from source,I will recompile as suggested and hope to succeed.

Thank you again for your answer.

Li Ning

Reply all
Reply to author
Forward
0 new messages