C++ libstdc++.so.6:无法打开共享对象文件:没有这样的文件或目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11471722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 15:10:44  来源:igfitidea点击:

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

c++cilkcilk-plus

提问by ammouna

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

我想使用 cilk++ 程序运行 Cilkscreen 命令,但出现此错误

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

/usr/local/cilk/bin/../lib32/pinbin:加载共享库时出错:libstdc++.so.6:无法打开共享对象文件:没有这样的文件或目录

Can you help me please

你能帮我吗

回答by takeit

Try this:

尝试这个:

apt-get install lib32stdc++6

回答by Fabian Knorr

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.

我假设您在 amd64 机器上运行 Linux。您的可执行文件驻留在 ( lib32) 中的文件夹表明需要 32 位库的 32 位可执行文件。

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.

这些似乎不存在于您的系统中,因此您需要手动安装它们。软件包名称取决于您的发行版,对于 Debian 是ia32-libs,对于 Fedora libstdc++.<version>.i686

回答by gilm

For Fedora use:

对于 Fedora 使用:

yum install libstdc++44.i686

yum install libstdc++44.i686

You can find out which versions are supported by running:

您可以通过运行以下命令找出支持的版本:

yum list all | grep libstdc | grep i686

yum list all | grep libstdc | grep i686

回答by Arpit Gupta

For Red Hat :

对于红帽:

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

回答by Thomas

/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

/usr/local/cilk/bin/../lib32/pinbin 动态链接到不再存在的库 libstdc++.so.6。你需要重新编译Cilk