gcc-c++-4.4.7-17安装 rpm包方式

    xiaoxiao2021-03-26  6

    前提:已经安装gcc-4.4.7-17

    若未安装请看上一篇文章: http://blog.csdn.net/cookiesoe/article/details/54584262 

     

    所需安装包:

    都可以从ftp://mirror.switch.ch/mirror/centos/6/os/x86_64/Packages/下载到

    gcc-c++-4.4.7-17.el6.x86_64.rpm 

    libstdc++-4.4.7-17.el6.x86_64.rpm

    libstdc++-devel-4.4.7-17.el6.x86_64.rpm

     

    安装过程

    [root@localhostgcc-c++]# rpm -ivh gcc-c++-4.4.7-17.el6.x86_64.rpm

    报错:

    warning:gcc-c++-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de:NOKEY

    error:Failed dependencies:

            libstdc++ = 4.4.7-17.el6 is needed bygcc-c++-4.4.7-17.el6.x86_64

            libstdc++-devel = 4.4.7-17.el6 isneeded by gcc-c++-4.4.7-17.el6.x86_64

     

    查看是否安装libstdc++

    [root@localhostgcc-c++]# rpm -qa |grep libstdc

    libstdc++-4.4.7-4.el6.x86_64

    发现已经安装但是版本不符合要求。

    下载安装libstdc++-4.4.7-17.el6.x86_64.rpm

    [root@localhostgcc-c++]# rpm -Uvh libstdc++-4.4.7-17.el6.x86_64.rpm

    warning:libstdc++-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key IDc105b9de: NOKEY

    Preparing...               ########################################### [100%]

       1:libstdc++             ########################################### [100%]

     

    下载安装libstdc++-devel-4.4.7-17.el6.x86_64.rpm

    [root@localhostgcc-c++]# rpm -ivh libstdc++-devel-4.4.7-17.el6.x86_64.rpm

    warning:libstdc++-devel-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key IDc105b9de: NOKEY

    Preparing...               ########################################### [100%]

       1:libstdc++-devel       ########################################### [100%]

     

    继续安装gcc-c++-4.4.7-17.el6.x86_64.rpm

    [root@localhostgcc-c++]# rpm -ivh gcc-c++-4.4.7-17.el6.x86_64.rpm

    warning:gcc-c++-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de:NOKEY

    Preparing...               ########################################### [100%]

       1:gcc-c++               ########################################### [100%]

     

    安装成功。

    转载请注明原文地址: https://ju.6miu.com/read-600376.html

    最新回复(0)