libstdc++.so.6: cannot open shared object file: No such file or directory
C++CilkCilk PlusC++ Problem Overview
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
C++ Solutions
Solution 1 - C++
Try this:
apt-get install lib32stdc++6
Solution 2 - C++
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
.
Solution 3 - C++
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
Solution 4 - C++
For Red Hat :
sudo yum install libstdc++.i686
sudo yum install libstdc++-devel.i686
Solution 5 - C++
/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