2023.12.30 libstdc++.so.6 GLIBCXX_3.4.32 not found

发布时间:2023年12月31日

run error

vgn) hit@hi-forrest-upboard:~/cmakeproject/plantest/bin$ sudo ./icontroller 
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by ./icontroller)
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/hit/cmakeproject/plantest/build/libi_traj.so)
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/hit/cmakeproject/plantest/build/libi_fileopt.so)
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/hit/cmakeproject/plantest/build/libi_vrep.so)
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/hit/cmakeproject/plantest/build/libi_udp.so)
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/hit/cmakeproject/plantest/build/libi_plot.so)
./icontroller: /home/hit/miniconda3/envs/vgn/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by /home/hit/cmakeproject/plantest/build/libi_filter.so)

libstdc++.so.6: version `GLIBCXX_3.4.26‘ not found 的应对策略(没错libstdc++.so.6又又又坏了)

FIND LIBSTDC++.SO

find / -name libstdc++.so.6 or locate libstdc++.so find lots of libstdc++.so in the system

GCLIBC++ VERSIONS

strings /home/dell/miniconda3/envs/metage/lib/libstdc++.so.6 | grep GLIBC

(vgn) hit@hi-forrest-upboard:~/cmakeproject/plantest/bin$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_3.4.27
GLIBCXX_3.4.28
GLIBCXX_3.4.29
GLIBCXX_3.4.30
GLIBCXX_3.4.31
GLIBCXX_3.4.32
GLIBC_2.2.5
GLIBC_2.3
GLIBC_2.14
GLIBC_2.6
GLIBC_2.26
GLIBC_2.25
GLIBC_2.18
GLIBC_2.16
GLIBC_2.4
GLIBC_2.7
GLIBC_2.3.4
GLIBC_2.17
GLIBC_2.3.2
GLIBCXX_TUNABLES
GLIBCXX_DEBUG_MESSAGE_LENGTH

cp libstdc++.so to the error folder to replace the old one

(vgn) hit@hi-forrest-upboard:~/cmakeproject/plantest/bin$ sudo cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libstdc++.so.6       libstdc++.so.6.0.32  
(vgn) hit@hi-forrest-upboard:~/cmakeproject/plantest/bin$ sudo cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6* /home/hit/miniconda3/envs/vgn/lib/

文章来源:https://blog.csdn.net/HITORANGE/article/details/135315149
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。