ammouna
ammouna

Reputation: 1011

libstdc++.so.6: cannot open shared object file: No such file or directory

I want to run Cilkscreen command with a cilk++ program but I'v got this error

/usr/local/cilk/bin/../lib32/pinbin: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Can you help me please

Upvotes: 101

Views: 289322

Answers (6)

Turab
Turab

Reputation: 191

It's a very old question but today I had this error in a Docker container in which I couldn't load sqlsrv extension for PHP.

Here is what I needed to do in Alpin:

apk add libstdc++

Upvotes: 0

Arpit Gupta
Arpit Gupta

Reputation: 511

For Red Hat :

sudo yum install libstdc++.i686
sudo yum install libstdc++-devel.i686

Upvotes: 11

gilm
gilm

Reputation: 8070

For Fedora use:

yum install libstdc++44.i686

You can find out which versions are supported by running:

yum list all | grep libstdc | grep i686

Upvotes: 9

takeit
takeit

Reputation: 4081

Try this:

apt-get install lib32stdc++6

Upvotes: 249

Fabian Knorr
Fabian Knorr

Reputation: 3204

I presume you're running Linux on an amd64 machine. The Folder your executable is residing in (lib32) suggests a 32-bit executable which requires 32-bit libraries.

These seem not to be present on your system, so you need to install them manually. The package name depends on your distribution, for Debian it's ia32-libs, for Fedora libstdc++.<version>.i686.

Upvotes: 15

Thomas
Thomas

Reputation: 2163

/usr/local/cilk/bin/../lib32/pinbin is dynamically linked to a library libstdc++.so.6 which is not present anymore. You need to recompile Cilk

Upvotes: 1

Related Questions