rukawa
Member • Dec 21, 2013
/usr/bin/ld: cannot find -lstdc++ (cacti installation)
Hello all
I am trying to install cacti5.3 (www.hpl.hp.com). The installation is simple : one has to download the tar file, unzip it, run the make command. When I run make, I get the following error message:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
I read somewhere linking statically to libstdc++ with -static-libstdc++ option is the solution, I guess I have to add this line in the Makefile, but where exactly?
Thanks in advance
I am trying to install cacti5.3 (www.hpl.hp.com). The installation is simple : one has to download the tar file, unzip it, run the make command. When I run make, I get the following error message:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
I read somewhere linking statically to libstdc++ with -static-libstdc++ option is the solution, I guess I have to add this line in the Makefile, but where exactly?
Thanks in advance