libicuuc.so linux,uwsgi: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr...

问题

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,

and

https://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:

uwsgi: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.55)

My system runs Ubuntu 16.04.

How to solve this problem? Please help me.

回答1:

From: https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_install

If you already have an older version of libstdc++ installed then the error might look like one of the following instead:

./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 found

This means the linker found /usr/lib/libstdc++.so.6 but that library belongs to an older version of GCC than was used to compile and link the program a.out (or some part of it).

The gcc dynamic linker needs the new path to the newer library:

export LD_LIBRARY_PATH=${prefix}/lib:$LD_LIBRARY_PATH

i.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.6

in summary: the gcc dynamic linker searches a list of preconfigured directories as described: https://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_install

The shared library libstdc++.so.6 is already there we just have to point the linker to the correct location.

来源:https://stackoverflow.com/questions/45235647/uwsgi-usr-lib-libstdc-so-6-version-cxxabi-1-3-8-not-found-required-by-u

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值