Error while loading shared libraries - libCore.so

Hi I just installed root and when I tray to run my script I get this message:

error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory

Any help?
Thank youks_4MeV.cc (24.9 KB)


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


There is many posts about that on the forum. May be one of them will answer your question.
You can search “error while loading shared libraries: libCore.so”.
Your macro looks fine. But we cannot run it because of the missing data.

That did not work for me: [Solved] libCore.so: cannot open shared object file: No such
attached are files.zag101.root (1.5 MB) zag102.root (882.1 KB)

I do not see such error. Which root version are you using ? on which machine ? have you installed ROOT yourself ?

Root is version 6 on Ubuntu 18.04. I just installed root…

For the sources of you downloaded a pre-installed binary ?

I installed source distribution

So I guess that in $ROOTSYS/lib/ libCore.so is missing ? which cmake options did you use ?
May be @amadio can help.

mkdir build
cd build
cmake …/root
make -j8

Search for “thisroot” in “Building ROOT” and / or “Downloading ROOT” web pages.

when I type:
source /root/bin/thisroot.sh
I get:
bash: /root/bin/thisroot.sh: Permission denied

cd build
source bin/thisroot.sh

Oh, yes, stupid mistake; I had one “/” more.

Thank you

Now when I tray to read a root file with I get this message: input_line_15:2:3: error: use of undeclared identifier ‘run1’
(run1.Drav(“e1x>>hsqrt(100,0,50):e2x”))
^
Error in : Error evaluating expression (run1.Drav(“e1x>>hsqrt(100,0,50):e2x”)).
Execution of your code was aborted.

We will need a reproducer to help you further.

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