Problem while installing ROOT!

I used the installing from source then >>

cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src
cmake --build . -- install

Can it be that some disk is full? Try: df -h

Before trying to build your new ROOT, did you completely delete “~/root_src”, “~/root_build” and “~/root_install” directories (so that there is nothing that belongs to some old version)?

I tried de -h

physicistesraa22@ESRAA:~/root_build$  df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           337M  1.9M  335M   1% /run
/dev/sdb3        68G   20G   45G  30% /
tmpfs           1.7G     0  1.7G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
/dev/sda1        96M   31M   66M  32% /boot/efi
tmpfs           337M  2.4M  335M   1% /run/user/1000
/dev/sdb5       228G  3.1G  225G   2% /media/physicistesraa22/01D8A116E32513C0
/dev/sda3       112G   50G   62G  45% /media/physicistesraa22/0A802A3F802A321D

No, I deleted nothing.
It stopped and I tried to resume it where it was but the errors also appeared.

I mean. You now try to build ROOT 6.26/04. If you had an older version (built previously), you should have deleted everything.

No, I haven’t any older versions, that’s the first time I install it.

So, it’s something for @Axel

BTW. The ROOT team provides ready-to-use binary distributions for some systems (see “Download a pre-compiled binary distribution” therein), including various Ubuntu versions, which you just need to download and unpack.
For Ubuntu 22.04 / x86_64 / gcc 11.2: https://root.cern/download/?C=M;O=A;P=*[uU][bB][uU][nN][tT][uU]*22*

Maybe one more check … do you have the “libgsl-dev” package installed?

Yes, it installed.
libgsl-dev/jammy,now 2.7.1+dfsg-3 amd64 [installed]

I am not sure I understand yet why you build ROOT yourself. It’s so much simpler to download the binaries as Wile_E proposed, or even use the binaries that conda offers. Please continue below only if you have a good reason to build ROOT rather than using pre-built binaries that just work.


Likely a permission problem; likely because you used sudo at some point (you shouldn’t). ls -l /home/physicistesraa22/root_build/lib/ should tell; or if the file already exists, ls -l /home/physicistesraa22/root_build/lib/MathMore.pcm.

You can fix the permissions using sudo chown -r physicistesraa22:physicistesraa22 /home/physicistesraa22/root_build/.

It works. But more errors appeared in XROOTD and VDT I don’t know why ? I really tried to solve them with no benefit.

Further more I installed conda and followed the steps of installing but it doesn’t work after some time the terminal window closes.
What I want to say is that I tried to install ROOT more than one time but no one succeeded. In every time, I face different errors and it is my first time so I am not familiar with using it.
Now, I want to clean all I did and start from the beginning with a successful way.
I will be grateful for help.
Thanks in advacne.

It’s terrible to hear how difficult it is for you to install ROOT!

What operating system / distribution do you use - is this Ubuntu? Which version?

Conda should “just work”; it’s very surprising and a bug by itself if this doesn’t work. More details, please!

The problems you see with xrootd and vdt are what exactly? Would you be able to share the error messages?

Cheers, Axel

You’re right so, I’m little disappointed as I tried so many times. I can’t understand what is wrong I do?!

Yes, it is ubuntu22.04.
While installing through conda after creating the environment, the solving of the environment fails and retries again and then it ends with closing the terminal.
I followed these steps to install ROOT through Conda.

conda config --set channel_priority strict
conda create -c conda-forge --name ROOT root

The errors related to XROOTD and VDT; you can see in the attached photos because I deleted all I did and started again with installation through the main source. It is the only method that works with me.

Also an error appeared related to MathMore.The error is>

[ 87%] Generating G__MathMore.cxx, …/…/lib/MathMore.pcm
<<< cling interactive line includer >>>: fatal error: module file ‘/home/physicistesraa22/root_build/lib/Rint.pcm’ is out of date and needs to be rebuilt: could not read module signature
<<< cling interactive line includer >>>: note: imported by module ‘MathCore’ in ‘/home/physicistesraa22/root_build/lib/MathCore.pcm’
Error: Module ‘MathCore.pcm’ failed to load.
Error: Error loading the default rootcling header files.
make[2]: *** [math/mathmore/CMakeFiles/G__MathMore.dir/build.make:142: math/mathmore/G__MathMore.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:26743: math/mathmore/CMakeFiles/G__MathMore.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

what should I do to continue installing correctly as this really consumes much time I need it.
Many thanks for you.

What about downloading https://root.cern/download/root_v6.26.06.Linux-ubuntu22-x86_64-gcc11.2.tar.gz and then just cd where-you-want-ROOT; tar xzf ~/Downloads/root_v6.26.06.Linux-ubuntu22-x86_64-gcc11.2.tar.gz?

I get the following>

physicistesraa22@ESRAA:~ mkdir root physicistesraa22@ESRAA:~ cd root/
physicistesraa22@ESRAA:~/root$ tar xzf ~/Downloads/root_v6.26.06.Linux-ubuntu22-x86_64-gcc11.2.tar.gz

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I want to continue installing from source, it reached 87% …
But what about the error I want to skip? How can I do that?
The error is above.

First, make sure you run: sudo apt-get install curl wget git

Then, assuming that “nproc” returns 4 or more and you have 8 GB RAM or more (if not, instead of “-j4” use “-j1”):

I followed this way. After the installing reached to 70%, the terminal was closing and I return open it and start again.
Then this error appeared after some times.>

dateCandidate(clang::TypoCorrection const&)‘:
ParseTentative.cpp:(.text._ZN12_GLOBAL__N_117TentativeParseCCC17ValidateCandidateERKN5clang14TypoCorrectionE+0xa4): undefined reference to `clang::CorrectionCandidateCallback::ValidateCandidate(clang::TypoCorrection const&)’
collect2: error: ld returned 1 exit status
gmake[2]: *** [core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/build.make:243: core/rootcling_stage1/src/rootcling_stage1] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:26786: core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
– clad build command succeeded. See also /home/physicistesraa22/root_build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-.log
[ 75%] Performing install step for ‘clad’
– clad install command succeeded. See also /home/physicistesraa22/root_build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-install-
.log
[ 75%] Completed ‘clad’
[ 75%] Built target clad
gmake: *** [Makefile:156: all] Error 2

What should I do now?
Is this error solvable? or what is the way that I could continue installation successfully?
I hope this time succeeds.
Many Thanks for you.

If the terminal got closed by the system then it’s really worrying. It may mean that your system started to kill running processes for some reason (ran out of “resources”?). Check what you get from:
nproc
free -h

However, it is also possible that the terminal gets automatically closed after a certain time of “inactivity”.
A simple test could be to open the terminal and leave it without doing any “activity” in it (then see if it disappears after some time; it could take some hours, of course).
If you are connecting to a server via “ssh”, use:
ssh -o TCPKeepAlive=yes -o ServerAliveInterval=99 ...
On your server, you may also want to set something like “ClientAliveInterval 99” in the “/etc/ssh/sshd_config” and then execute “sudo systemctl restart sshd”.
Check also (on both, your local machine and your server):
echo ${TMOUT}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.