/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

Replies

You are reading an archived discussion.

Related Posts

Let's discuss which of the following ways of incrementing is the most efficient. Take a look at the following ways of incrementing - I: i += 1; II: i =...
Hi frnds, I am a final Computer Science Graduate, we are a group of 5 and we want to start a web development company. Can I get help on structure...
This freak accident apparently happened in 2006. Reported again on CR4 here: https://cr4.globalspec.com/thread/87620/Engineering-Problem-or-Stupidity?frmtrk=cr4digest Interesting comments. The actual story is here: https://www.snopes.com/photos/accident/hoecrash.asp
Lava Mobiles International has launched a new smartphone in India with LAVA 3G 402+, a revamped version of the Lava 3G 402 Android phone. The newly upgraded phone features a...
The Samsung Galaxy Grand 2 was launched by the Korean company in November and today it if officially unveiling in India. Bigger in size and processing power than it's younger...