不能打开共享对象文件: 没有这样的文件或目录

我想用 cilk + + 程序运行 Cilkscreen 命令,但是我得到了这个错误

/usr/local/cilk/bin/. ./lib32/pinbin: 加载共享时出错 函数库: libstdc + + . so.6: 不能打开共享对象文件 文件或目录

你能帮帮我吗

252589 次浏览

/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

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.

Try this:

apt-get install lib32stdc++6

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

For Red Hat :

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