Error while loading shared libraries

Dear all,

I’m trying to compile my code:

g++ code.cpp -g -O2 -fPIC -o code.exec -I root-config --incdir root-config --libs root-config --ldflags

and I get the following error message:

/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin/…/libexec/gcc/x86_64-unknown-linux-gnu/4.3.2/cc1plus: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

In my startup script I have:

source /afs/cern.ch/sw/lcg/external/gcc/4.3.2/x86_64-slc5/setup.csh
setenv ROOTSYS /afs/cern.ch/sw/lcg/app/releases/ROOT/5.33.02/x86_64-slc5-gcc43-opt/root/

Any suggestion?

Thanks a lot in advance!

Hi,

You should contact your node’s administrator and/or the maintainer of the g++ installation you are using.
On lxplus, I get:ldd /afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.3.2/cc1plus linux-vdso.so.1 => (0x00007fff301df000) /$LIB/snoopy.so => /lib64/snoopy.so (0x00002b31a01e8000) libmpfr.so.1 => /afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/lib64/libmpfr.so.1 (0x00002b31a03ea000) libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00002b31a065b000) libc.so.6 => /lib64/libc.so.6 (0x00002b31a0894000) libdl.so.2 => /lib64/libdl.so.2 (0x00002b31a0bec000) /lib64/ld-linux-x86-64.so.2 (0x00002b319ffca000)

Philippe.