gcc 动态链接器需要新库的新路径:export LD_LIBRARY_PATH=${prefix}/lib:$LD_LIBRARY_PATH即:export LD_LIBRARY_PATH=/usr/lib64/:$LD_LIBRARY_PATH(取决于您的系统,您可能需要/usr/lib/)找到路径:找到 libstdc++.so.6总而言之:gcc 动态链接器搜索预配置目录列表,如下所述:https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_install共享库 libstdc++.so.6 已经存在,我们只需要将链接器指向正确的位置.I got this error when I ran sentry run web.I am confused about it and tried a lot of things, such as:https://stackoverflow.com/questions/20357033/how-to-fix-program-name-usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxx,andhttps://stackoverflow.com/questions/35392310/error-building-gcc-4-8-3-from-source-libstdc-so-6-version-cxxabi-1-3-8-not.But it didn't work for me. The problem is still there: My system runs Ubuntu 16.04.How to solve this problem? Please help me. 解决方案 From: https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_install./a.out: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found./a.out: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.8' not foundThe gcc dynamic linker needs the new path to the newer library:export LD_LIBRARY_PATH=${prefix}/lib:$LD_LIBRARY_PATHi.e.:export LD_LIBRARY_PATH=/usr/lib64/:$LD_LIBRARY_PATH(depending on your system you may need /usr/lib/)Find the path:locate libstdc++.so.6in summary: the gcc dynamic linker searches a list of preconfigured directories as described: https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_installThe shared library libstdc++.so.6 is already there we just have to point the linker to the correct location. 这篇关于uwsgi:/usr/lib/libstdc++.so.6:未找到版本“CXXABI_1.3.8"(/usr/lib/x86_64-linux-gnu/libicuuc.so.55 需要)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-27 22:00
查看更多