/usr/lib/x86_64-linux-gnu/libstdc++.so.6:找不到版本CXXABI_1.3.8' [英] /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version CXXABI_1.3.8' not found

查看:652
本文介绍了/usr/lib/x86_64-linux-gnu/libstdc++.so.6:找不到版本CXXABI_1.3.8'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近寻求帮助

I recently asked for help https://stackoverflow.com/questions/20253515/no-idea-as-to-usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8 and it got downvoted and closed (I don't know why)

事实证明,"make install"(安装的目标)暗示着目标"install-target-libstdc ++ v3"实际上并不意味着您已经准备就绪.

It turns out that "make install" - the make target that installs and implies the target "install-target-libstdc++v3" doesn't actually mean you're ready to go.

我一直想知道自己在做什么错了,因为我以为这样的make目标可以帮到我.

I've been stuck for a while wondering what I was doing wrong because I assumed that such a make target would do that for me.

我希望这个答案至少可以帮助另一个人.

I hope this answer helps at least one other person.

推荐答案

对于所有遇到类似问题的人,请运行以下命令:

For all those stuck with a similar problem, run the following:

LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

编译并安装GCC时,确实会将库放在此处,仅此而已.如常见问题解答所述( http://gcc.gnu.org/onlinedocs/libstdc++/faq.html #faq.how_to_set_paths ),则需要添加它.

When you compile and install GCC it does put the libraries here but that's it. As the FAQs say ( http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths ) you need to add it.

我假设如何确保将找到动态链接的库?"的意思是如何确保始终找到该动态链接的库",而不是不会被找到,您需要执行此操作"

I assumed "How do I insure that the dynamically linked library will be found? " meant "how do I make sure it is always found" not "it wont be found, you need to do this"

对于那些不介意设置前缀的人,它是/usr/local/lib64

For those who don't bother setting a prefix, it is /usr/local/lib64

如果您阅读make输出,则在安装gcc时会发现简短提及的内容:

You can find this mentioned briefly when you install gcc if you read the make output:

Libraries have been installed in:
   /usr/local/lib/../lib32
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages. 

很简单!另外,如果您碰巧想要链接到已安装的库",真的吗?

Grr that was simple! Also "if you ever happen to want to link against the installed libraries" - seriously?

这篇关于/usr/lib/x86_64-linux-gnu/libstdc++.so.6:找不到版本CXXABI_1.3.8'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆