$ tar zxvf root_v5.17.02.source.tar.gz
$ cd root
$ ./configure --prefix=/usr/local/root --libdir=/usr/local/root/lib --incdir=/usr/local/root/include --datadir=/usr/local/root/share --docdir=/usr/local/root/share/doc
$ make -j2
$ sudo make install
After compilation, I type $ root -l in a terminal but ROOT are not loaded and appear the message:
[quote]pacheco@pacheco-laptop:~$ root -l
/usr/local/bin/root.exe: error while loading shared libraries: libCore.so.5.17: cannot open shared object file: No such file or directory
[/quote]
putting /usr/local/lib/root (your --libdir) into /etc/ld.so.conf might be a good idea for a --prefix install into /usr/local/root, too. That way you don’t need to set any env vars.
I has success in install ROOT 5.14, installing the GL headers (libglu1-mesa-dev) and configuring with the options ./configure --prefix=/usr/local --enable-soversion --enable-rpath and using make -j2.
I tried this same options to ROOT 5.16 and 5.17 and have problem in both.
did you try what we suggested? Is the error message still “/usr/local/bin/root.exe: error while loading shared libraries: libCore.so.5.17: cannot open shared object file: No such file or directory” or are you referring to a different problem now?
Hi Axel,
unfortunately I did not have opportunity to test the suggestions because I tried the instalation with another versions. I cannot compile the version 5.16 with make and, like a miracle, everything work when I tried with the version 5.14.
About the error message when I tried ran the version 5.17, I receive the exactly message that you put.
Just to confirm: I used the same configuration option for the 3 versions that I tried perform the instalation and only with 5.14 version I had success and it is work very fine Another observation is that I not set any environment variable to use root 5.14.
Unfortunately, when I try to run it, I get the same error about
/opt/bin/root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory
What is it that I’m missing? I thought with the --prefix= flag I wouldn’t have to do anything with $ROOTSYS and such. Is this true or did I misunderstand the guide? I don’t find the guide to be that clear.
you don’t need ROOTSYS, but your OS needs to find the libraries. Check where libCore.so is (/opt/lib/root or something like that), and put its path into /etc/ld.so.conf.
you don’t need ROOTSYS, but your OS needs to find the libraries. Check where libCore.so is (/opt/lib/root or something like that), and put its path into /etc/ld.so.conf.
Axel.[/quote]
I’ve got the same problem, and I added ‘include /usr/local/lib/root/libCore.so’ to /etc/ld.so.conf, but it didn’t help anything. Is there possibly anything else that could be done?
Make sure that libCore.so and libCore.so.5.17 are in the directory /usr/local/lib/root (Otherwise use which ever directory they are in).
Try also without the trailing /
I don’t know if this is related, but until messing around with root geant4 was working perfectly, but now when I try to execute files made with geant4, I get a similar error message:
‘error while loading shared libraries: libCLHEP-2.0.3.1.so: cannot open shared file: No such file or directory’
And I didn’t get it before.
Also, I made sure the files were actually in /usr/local/lib (which they were) and tried removing the trailing /, but it still refuses to work.