首页 > 技术文章 > Qt5需要的_libstdc++6_4.7.2-5_???.deb

cppskill 2016-08-08 09:22 原文

1、下载地址:

http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/

 

2、下载的文件:

32位:libstdc++6_4.7.2-5_i386.deb

64位:libstdc++6_4.7.2-5_amd64.deb

 

3、

32位:strings /usr/lib/libstdc++.so.6 | grep GLIBCXX

32位:strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX

 

4、

貌似 还可以通过命令“yum install libstdc++”来安装,未经测试...

 

5、解压 (CentOS6.4 x64)

  5.1、dpkg -x xx.deb 目标文件夹

    CentOS6 默认不自带该命令,Ubuntu貌似是自带的

  5.2、

[root@localhost home]# ar -vx libstdc++6_4.7.2-5_amd64.deb 
x - debian-binary
x - control.tar.gz
x - data.tar.gz
[root@localhost home]#

    ZC: 默认会解压在所在目录中(这里是/home),也就是说 文件debian-binary、control.tar.gz和data.tar.gz被解压到了 /home中。

 

[root@localhost home]# tar -zxvf data.tar.gz 
./
./usr/
./usr/share/
./usr/share/doc/
./usr/lib/
./usr/lib/x86_64-linux-gnu/
./usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
./usr/share/doc/libstdc++6
./usr/lib/x86_64-linux-gnu/libstdc++.so.6
[root@localhost home]#

    ZC: 将 这里的"usr/lib/x86_64-linux-gnu"里面的“libstdc++.so.6”和“libstdc++.so.6.0.17” copy到“/usr/lib64/”目录下

 

  再次“strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX” ==> 显示 最高是 GLIBCXX_3.4.17 了。

 

6、

  

 

推荐阅读