当前位置: 首页 > Linux

Linux下安装GLIBC_2.18和libstdc++.so

时间:2023-04-06 06:54:56 Linux

Tips:如果没有安装libstdc++.so,会报错:ImportError:/usr/lib64/libstdc++.so.6:version'GLIBCXX_3.4.15'notfound(requiredby/opt/calibre/lib/libQt5WebKit.so.5)GLIBC_2。18、GLIBCXX_3.4.19#yuminstalllibstdc++.so.6-y---查看动态库版本#strings/usr/lib64/libstdc++.so.6|grepGLIBC#wgethttp://ftp.de.debian.org/debian/pool/main/g/gcc-4.8/libstdc++6-4.8-dbg_4.8.4-1_amd64.deb#ar-xlibstdc++6-4.8-dbg_4.8.4-1_amd64.deb#tar-xvfdata.tar.xz--复制到/usr/lib64#cp./usr/lib/x86_64-linux-gnu/debug/libstdc++.so.6.0.19/usr/lib64--授权#chmod+x/usr/lib64/libstdc++.so.6.0.19--删除低版本库的软链接#rm/usr/lib64/libstdc++.so.6#ln-s/usr/lib64/libstdc++.so.6.0.19/usr/lib64/libstdc++.so.6#cd/usr/local#wgethttp://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18。tar.gz#tar-xzvfglibc-2.18.tar.gz#cdglibc-2.18#mkdirbuild&&cdbuild/#../configure--prefix=/usr--disable-profile--enable-add-ons--with-headers=/usr/include--with-binutils=/usr/bin#make-j4#makeinstall---解决中文乱码问题#makelocaledata/install-locales---检查验证#ll/lib64/libc*---检查系统glibc支持的版本#strings/lib64/libc.so.6|grepGLIBC#/lib64/libc.so.6