C++ 我在哪里可以获得文件 libstdc++.so.6.0.15 的副本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16605623/
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
Where can I get a copy of the file libstdc++.so.6.0.15
提问by code_fodder
I am trying to fix my problem "GLIBCXX_3.4.15" not found, which is fairly well documented to fix. But it requires getting the file "libstdc++.so.6.0.15" from somewhere.
我正在尝试解决我的问题“GLIBCXX_3.4.15”未找到,该问题有很好的文档可以解决。但它需要从某个地方获取文件“libstdc++.so.6.0.15”。
Most of the solutions tell me to get it from the location that I compiled my c++ library from. However, I did not compile it, it came with my Ubuntu installation, and when I do "locate" for that file it is not found.
大多数解决方案都告诉我从编译我的 c++ 库的位置获取它。但是,我没有编译它,它随我的 Ubuntu 安装一起提供,当我为该文件“定位”时找不到它。
So, I would like to just download it from somewhere, but I can't find it on the web anywhere. I have tried to look in the svn repo: svn://gcc.gnu.org/svn/gcc, but was not able to find it (its huge!)
所以,我想从某个地方下载它,但我无法在网上的任何地方找到它。我试图查看 svn 存储库:svn://gcc.gnu.org/svn/gcc,但找不到它(它很大!)
Any help much appreciated :) Fodder
非常感谢任何帮助:) 饲料
回答by zakinster
You shouldn't have to manually download this library, if you're on Ubuntu Linux, it should be shipped inside this package :
你不应该手动下载这个库,如果你在 Ubuntu Linux 上,它应该包含在这个包中:
sudo apt-get install libstdc++6
If you already have libstdc++6
, then the problem is elsewhere and you should explain what you're trying to achieve in the first place.
如果您已经有了libstdc++6
,那么问题出在其他地方,您应该首先解释您要实现的目标。
If you want a newer version of libstdc++6
than the one provided in the default package, then you can try to update to the toolchaintest package :
如果您想要libstdc++6
比默认包中提供的版本更新的版本,那么您可以尝试更新到工具链测试包:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Otherwise you would have to compile GCC from source :
否则,您将不得不从源代码编译 GCC:
- Install the prerequisite (using
sudo apt-get build-dep gcc-4.7
as instance) - Get the source from GNU.org
- Compile it using
configure
,make
andmake install
回答by SChepurin
Just realized that was having the similar problem some time ago. Disclaimer: If you know what you are doing, check this repository - Index of /debian/pool/main/g/gcc-4.7. It must be in some of the packages available. Use Archive Manager to get inside.
刚刚意识到前一段时间有类似的问题。免责声明:如果您知道自己在做什么,请查看此存储库 - /debian/pool/main/g/gcc-4.7 的索引。它必须在一些可用的包中。使用存档管理器进入。