Home | News | Documentation | Download

Error while loading shared libraries: libCore.so.6.20 in HTcondor

Dear sir/madam,

I’ve got a strange problem on htcondor (or maybe g++).

I wrote a cpp code and compile it with g++, such as 'g++ fullspan.cpp -o fullspan root-config --cflags --libs. When I run on linux bash using “./fullspan”, it works well. However when I submit it to htcondor, it tells me “error while loading shared libraries: libCore.so.6.20: cannot open shared object file: No such file or directory

My code was ok on htcondor before. But I tested vscode cpp&python extensions on lxplus.cern.ch recently , and now it seems in a totally mess. I don’t know whether this problem is resulted by vscode extensions.

Btw, when I submit my previous compiled program to htcondor, it also works well. If I submit my new compiled program using same cpp code to htcondor, it returns such error. Many thanks if someone can help me!


Please read tips for efficient and successful posting and posting code

_ROOT Version: ROOT ROOT 6.20/06
_Platform: lxplus.cern.ch
_Compiler: g++


Sorry I find where the problem is.
I add two line in the .bashrc which is:
source /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.20.06/x86_64-centos7-gcc48-opt/bin/thisroot.sh
source /cvmfs/sft.cern.ch/lcg/releases/LCG_88/scikitlearn/0.17.1/x86_64-slc6-gcc49-opt/scikitlearn-env.sh

I remove these two lines and all are ok.

@phoenixAspies can you print, please what is an output root-config --cflags --libs in case of submission to htcondor? it seems for me that ROOT is not available there…