I’m trying to build root 6 on a server, that as default has gcc/g++ 4.4.7 installed (which doesn’t support C++11, so it can’t build root6). As such, I’ve installed an updated version of gcc/g++ in my home directory, /homedir/libraries/gcc-install/. Using this, I was able to CMake properly, but when I try to subsequently call make, I’ve run into a series of errors, that I’ve managed to solve one by one until this one:
[ 72%] Generating G__TMVAGui.cxx, ../../lib/libTMVAGui_rdict.pcm, ../../lib/libTMVAGui.rootmap /homedir/libraries/root-build/bin/rootcling: /usr/lib64/libstdc++.so.6: version "CXXABI_1.3.7" not found (required by /homedir/libraries/root-build/lib/libRIO.so) /homedir/libraries/root-build/bin/rootcling: /usr/lib64/libstdc++.so.6: version "GLIBCXX_3.4.20" not found (required by /homedir/libraries/root-build/lib/libRIO.so)
it seems that rootcling is looking for the c++ library libstdc++ in /usr/lib64, which is the location for the library for the default g++ 4.4.7 compiler; not the library of the new version of g++ that i’ve installed (which would be located at /homedir/libraries/gcc-install/lib64)
I ran into an error like this before, which I solved by
export LD_LIBRARY_PATH=/homedir/libraries/gcc-install/lib64
but that isn’t working for this error. I’m not sure how to proceed; I’m not very experienced as a coder so any tips would be helpful, thanks.