Linux(十)centos 7 rpm安装gcc(镜像自带rpm)

时间:2015-03-13 18:09:23   收藏:0   阅读:12461

[root@localhost Packages]# rpm -ivh gcc-4.8.2-16.el7.x86_64.rpm
警告:gcc-4.8.2-16.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY
错误:依赖检测失败:
        cpp = 4.8.2-16.el7 被 gcc-4.8.2-16.el7.x86_64 需要
        glibc-devel >= 2.2.90-12 被 gcc-4.8.2-16.el7.x86_64 需要
        libmpc.so.3()(64bit) 被 gcc-4.8.2-16.el7.x86_64 需要
        libmpfr.so.4()(64bit) 被 gcc-4.8.2-16.el7.x86_64 需要

libmpfr.so.4:rpm -ivh mpfr-3.1.1-4.el7.x86_64.rpm

libmpc.so.3:rpm -ivh libmpc-1.0.1-3.el7.x86_64.rpm

glibc-devel >= 2.2.90-12: rpm -ivh kernel-headers-3.10.0-123.el7.x86_64.rpm

              rpm -ivh glibc-headers-2.17-55.el7.x86_64.rpm

              rpm -ivh glibc-devel-2.17-55.el7.x86_64.rpm

              rpm -ivh gcc-4.8.2-16.el7.x86_64.rpm

cpp = 4.8.2-16.el7:rpm -ivh cpp-4.8.2-16.el7.x86_64.rpm

都安装完成后:gcc -v

会看到gcc版本

分享一个系统与软件包依赖可查网站:http://pkgs.org/

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!