Tips:若是不裝libstdc++.so會報錯:
ImportError: /usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.15' not found (required by /opt/calibre/lib/libQt5WebKit.so.5)
-
GLIBC_2.18
,GLIBCXX_3.4.19
# yum install libstdc++.so.6 -y
--- 查看動態庫版本有哪些
# strings /usr/lib64/libstdc++.so.6 | grep GLIBC
# wget http://ftp.de.debian.org/debian/pool/main/g/gcc-4.8/libstdc++6-4.8-dbg_4.8.4-1_amd64.deb
# ar -x libstdc++6-4.8-dbg_4.8.4-1_amd64.deb
# tar -xvf data.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
# wget http://mirrors.ustc.edu.cn/gnu/libc/glibc-2.18.tar.gz
# tar -xzvf glibc-2.18.tar.gz
# cd glibc-2.18
# mkdir build && cd build/
# ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# make -j4
# make install
--- 解決中文亂碼問題
# make localedata/install-locales
--- 檢查驗證
# ll /lib64/libc*
--- 查看系統glibc支持的版本
# strings /lib64/libc.so.6 |grep GLIBC
# /lib64/libc.so.6