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

6

100

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

Deen answered 13/7, 2012 at 13:44 Comment(0)
S
247

Try this:

apt-get install lib32stdc++6
Selfcommand answered 1/7, 2013 at 17:40 Comment(5)
This is much better than installing ia32-libs (as proposed by trion). Doing this, I had to install 1 or 2 other dependencies while ia32-libs has 241 dependencies totaling 267 MB additional disk space.Cariole
This also works to run the Microsoft Windows virtual appliances for testing self-extracting program. Thanks!Saki
@Selfcommand For a 64bit machine, should we install lib64stdc++6 instead ?Aksoyn
@Aksoyn I think lib32stdc++6 is for 64bit machine running 32bit software. Something similar to "compatibility layer". To run 64bit ("native") software on 64bit machine you just need libstdc++6. (The links are for Ubuntu 14.04 Trusty Tahr; I cannot find the link for Ubuntu 10.10 Maverick Meerkat.)Oxen
Awesome, though I met this problem in a different situation where I try to build android source code, it figured out the problem perfectly. Thank you so so much!!!lsFoxhole
I
15

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.

Iz answered 13/7, 2012 at 13:53 Comment(7)
I'm running Linux on Ubuntu 10.10Deen
Then you want to do it the Debian way and install ia32-libs or switch to a 64-bit version of the software you're trying to use.Iz
I was installed this package but I'v got now another error "process killed by signal -7 E:Attach to pid 3874 failed: Operation not permitted"Deen
Looks like you're trying to attach a 64-bit debugger/monitor to a 32-bit application or vice versa? You should really try to get 64-bit components and create 64-bit executables; this will make life much easier.Iz
How can I do this ? I'm a Linux beginner and I don't understand you well how to attach a 64-bit debugger/monitor to a 32-bits application o v/s. can you explain that pleaseDeen
I haven't used Cilk before, so I'm afraid I can't really help you with that. Search Google for 64-bit versions of Cilk or start a new thread on this topic ("Using Cilk on 64-bit systems").Iz
Thanks for sharing! This solved for me on Debian 6 "squeeze": $ sudo apt-get install ia32-libsRebeccarebecka
S
11

For Red Hat :

sudo yum install libstdc++.i686
sudo yum install libstdc++-devel.i686
Shana answered 18/3, 2016 at 8:52 Comment(0)
A
9

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

Armagnac answered 19/4, 2015 at 11:46 Comment(0)
S
1

/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

Stopple answered 13/7, 2012 at 13:48 Comment(2)
but libstdc++.so.6 exists in /usr/lib folderDeen
Yes, but as it's a 32-bit application, it requires /usr/lib32/libstdc++.so.6.Iz
C
0

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++
Cornhusking answered 3/4 at 23:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.