/usr/bin/ld: cannot find -lstdc++ (cacti installation)

rukawa

rukawa

@rukawa-Y0pUkC Oct 25, 2024
Hello all
I am trying to install cacti5.3 (<a href="https://www.hpl.hp.com/research/cacti/" target="_blank" rel="nofollow noopener noreferrer">www.hpl.hp.com</a>). 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

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform