Linux(RHEL6.0)下安装GCC

查看系统版本

[root@CP-RHEL proc]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.0 (Santiago)
Kernel \r on an \m

查看系统是否安装GCC

输入gcc,提示gcc命令没找到,说明未安装

[root@CP-RHEL proc]# gcc
-bash: gcc: command not found

准备RPM软件包

准备rpm软件包,如下图所示,可去网上下载,也可以直接从光盘镜像中拷贝过来;

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXcAAACuCAIAAABC5Nr6AAAS6UlEQVR4nO2cTXLcSA6FGeGL6TJ9D19DN5qFFrPQ1mfhLKyuoRJ/L5EAySq9LxgVNAkgkUjwVbXNzu3t7e33799vb2/7vn/+9z88ePBwjt+/f7/Yk3LCjDaqDA8e+EGVSRxUGR48Jg6qTOIwVWY70DLwTFiZRlNWPHj4x31URj6huYdCzmjTWErVURn1vLBGswVNu/PgkTje3t7kxZuoTOHj4Myo6imbVhlVQY9XpPiFLuoVmYya0noyPHjIw/o7hHuqzPHi7MOFq4x8AMGnbE5l1FFVS/WuFcqZDDLQejI8eAzH3x8y8vG7v8oMfwx7flFlkKds7u9lrlUZy309GR48jsfjv5VuqzKf0d/L+L8MwBmFTxmoa/FvGeuH0P9/DlWojAxrzVbOcyoZfyAePD6//43M8FzcR2WOh/Pwhz3foTIjK//F5FjKhJxQ4dNuhfWHC5PhwUMew1/6voDK+L7dv2U+n+vvZY5/LFEZig4Peewaj7s3URnnSfSbfPG3zCfw5CpPK6Iyn9/VYfjp5T/Yqsvxum9jJWM5ppPhwQM5bqIyn/aTqF53en5RZdTg41PJd3958MCP+6jMVTOyvsg9F6oMDx748cNVxvpPnMDroTK/CSGkgW+/ZVS2zTsIIcRHV5n39+1xOFJClSGEhCgq8/6+/fnzZ98/9v1j39//Ssnxl8vjnCpDCAkZVeb9ffv4+Od4HAVl+KTKEEJCFJX591fM14GozN9/GFeiF+nQMc7j3+ETQUJHaRN6Da8MqDkX5gOOrlqGVxIJ55YjUWfHpqrNqqjqtDP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KJPHs+OZVZz3AXC1aoMuHQ6l2qTJrZ7s1JzFSHJH7LWFeKVGZyF6v9oJfWle07Xk4iDmLje62MHuYzmKljgRkeT8B8kFkMQ1ij+xc3rKsI0jNWe4RdhIwVrn5iCmrOe9QPXw5Vu1ipswKnRO4JV7CKqkpeuyLp0Wt2scIFldSyCcojVwX8sbyMxKT7gTs/EEJ6ocoQQnqhyhBCeqHKEEJ6ocoQQnqhyhBCeqHKEEJ6ocoQQnqhyhBCevkf1yvmzl3OQF8AAAAASUVORK5CYII=" alt="" />

我的操作系统是装在虚拟机里,系统镜像是网上下载的,直接用7z打开iso文件,如下,可以找到以上的rpm软件包。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmcAAADtCAIAAAB1ZEXRAAAgAElEQVR4nO2de6xnVXXHTzoBK01DgjUtbU1MqrZp2jSBookxFV+tpRJDGlJFHmqdavBBhVKQoLkoVbGIUmrbGxoftZjaoqOCIjAyPAcGL4/BCwMzDMPL4eGVxzgjr4HTP37Mj3P2Y+2199nndx6/zycrv5w5Z+21115nn/39nTv3nlMs33wdhmEYhmEaKzrPAMMwDMOGYsUCAAAA6ChKAAAA0MFPaDEMwzBMa6gmhmEYhmkN1cQwDMMwraGaGIZhGKY1VBPLY4VF5ylhGIZlN2lps9dBlkLMZ0VRlOULVhTFwsJC51lhGIbltZBqlnVjKXRVqf/B5ThZekE1MQybB0M1G1ewzVvwLMGL50+dO458NDbVKkwVDMPGZ6hm4woWRbGw0JJwTtSnSfCidvbMOPLRWLMfotH52cEwDMtrqGbjCk5Usx3h3KOaicFdJ7BQHsUwDMNsmxfVdP5mU67/z3teNVsQzopqZhZO5/60k9tebTEMw/pmtTsPB/bKmrQ4+hZWmeSwDrfqb6rs+X2VoEjYMd39TVUzRjjVZVhoQzhzSeay9XtA/DYQhmEjtrpqlvGmWxxdC3U4tDaya80OOmiD79HCib+pkU6L+CaxEG95hDOXZC5X5B/VxDBs9DZ41VwWhbOJZC4nq6ZOOFNVM7N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dq0n10xANQHAR001y+euLcvFslwsy8vKcmNZrv+NU/Y5YfPBH7/vkD899VVpqrnjvs9OJPOJx/9399MPLv/o8Bsufv/dG4577N4vPnLXGSubP3nv0kd+tvU8b36uVS9449I31bTj6DUySuQ02WZXzdh89M0TyDITWtU2hBNg0NRV88lvlE+dM7Wtaw486OQXf/y+Q46//S1v+8LrJ3efsar52N2nTyRz58rXf/n4+lsuOezHP3j3Xes/sLL5kw9v+tiDPzl++80fuvOa93nz0616mrWyen9TXbinn86f5jkVOnjnZIfSOBg7g0FsfKPwjcgee3VPaRXN+U+5L98ogifUVzG7aL7R2TkHgzvLok/JmZ5z+AAwUOqq+fCXdt9/yo5b37v9yjduu+S1K3d85fVnvu6fHj7sby57zRfWfqYsd2y65N2xqvnIXadNJPOxB85duedfbr7o0A3fO+LOK9870cv7b1i9srKy5ar3evOL/+Gks5W9IJbW8u3sy7coR234wmpyjlpwNc7KgL7iRCUmtIoai9NfX2e5VVTlm0wAISsAGAp11dxyxr0/fMOj2/6vLB8oyzvKcv3LT3vpWTuPeMU//9a27Wt2bP/vjevOiFXNlS2nTiXzwS1n3HjhX1635q83r3vX/Tesvu/6Y+659oiVlZXNV77Hm187qlmKd3JRqmmHilrNo9bcWaqm4NlENUvdTaozpuZ8aRLznS+fg2+n85+yj5AVAAyCmmruXv7UveuPK8vzJ/+7uW3l03/8ry87+po/O+acPyp3fHPzxYck/L/mQ7efPJXM+5cXlr735+vPP/SOtYffc+0Rd19z+LarDltZWbnjimO8+bWpmsFWdr9NbjWSVVOTmNJB6VNa9cmomsGulTHTVDPq20mu7zSxYweA3lJTzYcvP3zXw1eUO86c2ML5b3nlmfv/ycL+j979sV3bTrr50o8nqOYDy/8wlcy7b/zH67/z5qu/+dbbLzls21WH3XXFoXddceiRF2+9/fKj3Ml5bkrk9VRoJSz91SaFC18cZ49y5r6+7LZyVnLRhHLJEapjdCamjyP4GJE1o/DtdHYa7No3NHvb2UrIx9fEzhAABkdNNbevfXu587rywU9NbN+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ZRxEpa75AyDFcuCSjWNz+pGq8xSNe1z056P4JBFNRtGUH7D8O3s5woFMyBh8suX6ohVcwS10seZmWr6jvZRNYsKxh7bx/C3fZxNfD7ByJo9ZWuqKYzUbhg8tc6xG0flOEYRjIaxcZyDiurdeSKCvUM/0VwgpXrSyhPJ3nZOyN5OpDHVqhpW7te5XdRR5my3suP79jQkrJruZkV12yyZZsMVU9vKV1OnQ7Df5PTSfGSH2OCabWccIZomjtAqWGrf2azGUa4p0B/SJn/CBJ46yOtsVLQZM6ZaxWbYcHkJZti9agpmpNVc7Ruqptxd7MRq1UfIJzZy2oUkt0qb1r4MhYZ2c+cnDIWEye+bSFGdOuM0UYIZMI5aKVfm2GWqSYZp6hOFXzVn/lZqQSyV56ZhArF5NvFJULvgSKPiOGvbUDWDXTuPopojo+Hkj71UB6qaEwZdK3mZnSfV7PSt1Mom9jIdjKykGkc4o1E+vqPBcskNizrKOEZzfT6aUdhj15wpewjGJwyLhpPfObET4jj39I1B18rZe66+crUqI7+aaPbUVLMPb6XW0OfLAGLhbALAgKgtWB2+lVqV60x6AZvCInvkXAEBAFqF1QoAAEALqgkAAKAF1QQAANAi/z6SZAAAAPOGqX68lRoAAMBHTf14KzUAAICA9PeaVYE0PlFNAACYQ6xnA43irdTJrbL42E+mSH7oRsM4zlbJj9goeSIBiOR6eotyqgdb9fmvgcdRK2WchJyTM3Q2yTsNbNUcw1upnaE05W7uY59p57YGZ9uoIHYETRyfT28XIOgDmqnum9IJUz3Yqsml1zbjqJWwvGhyFvpSRnY2bL5sBvl/abcrjeWdL3QAAAAASUVORK5CYII=" alt="" />

开始安装

将需要的rpm软件包拷贝到linux操作系统里(可以用文件传输工具,或者使用mount挂载到硬盘来安装也是可以的),依次安装以下软件包:

rpm -ivh kernel-headers-2.6.32-71.el6.x86_64.rpm

rpm -ivh glibc-headers-2.12-1.7.el6.x86_64.rpm

rpm -ivh glibc-devel-2.12-1.7.el6.x86_64.rpm

rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm

rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm

rpm -ivh cpp-4.4.4-13.el6.x86_64.rpm

rpm -ivh binutils-2.20.51.0.2-5.11.el6.x86_64.rpm

rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

rpm -ivh gcc-4.4.4-13.el6.x86_64.rpm

验证是否安装

输入gcc,提示没有输入文件,说明安装ok

[root@CP-RHEL gcc-install]# gcc
gcc: 没有输入文件

安装日志

checking for OS
 + Linux 2.6.32-71.el6.x86_64 x86_64
checking for C compiler ... not found

./configure: error: C compiler cc is not found

[root@CP-RHEL nginx-1.10.2]# ^C
[root@CP-RHEL nginx-1.10.2]#
[root@CP-RHEL nginx-1.10.2]# ls
auto        conf       html      man     src
CHANGES     configure  LICENSE   objs
CHANGES.ru  contrib    Makefile  README
[root@CP-RHEL nginx-1.10.2]# cd /usr/local/
[root@CP-RHEL local]# ls
apache-tomcat-7.0.72         lib
apache-tomcat-7.0.72.tar.gz  lib64
bin                          libexec
etc                          nginx-1.10.2
games                        nginx-1.10.2.tar.gz
gcc-install                  sbin
include                      share
jdk1.7.0_25                  src
jdk-7u25-linux-x64.tar.gz    测试
[root@CP-RHEL local]# cd gcc-install/
[root@CP-RHEL gcc-install]# ls
binutils-2.20.51.0.2-5.11.el6.x86_64.rpm
cpp-4.4.4-13.el6.x86_64.rpm
gcc-4.4.4-13.el6.x86_64.rpm
glibc-devel-2.12-1.7.el6.x86_64.rpm
glibc-headers-2.12-1.7.el6.x86_64.rpm
[root@CP-RHEL gcc-install]# rpm -ivh glibc-headers-2.12-1.7.el6.x86_64.rpm
warning: glibc-headers-2.12-1.7.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        kernel-headers is needed by glibc-headers-2.12-1.7.el6.x86_64
        kernel-headers >= 2.2.1 is needed by glibc-headers-2.12-1.7.el6.x86_64
[root@CP-RHEL gcc-install]# ls
binutils-2.20.51.0.2-5.11.el6.x86_64.rpm  glibc-devel-2.12-1.7.el6.x86_64.rpm
cpp-4.4.4-13.el6.x86_64.rpm               glibc-headers-2.12-1.7.el6.x86_64.rpm
gcc-4.4.4-13.el6.x86_64.rpm
[root@CP-RHEL gcc-install]# ls
binutils-2.20.51.0.2-5.11.el6.x86_64.rpm  glibc-devel-2.12-1.7.el6.x86_64.rpm
cpp-4.4.4-13.el6.x86_64.rpm               glibc-headers-2.12-1.7.el6.x86_64.rpm
gcc-4.4.4-13.el6.x86_64.rpm
[root@CP-RHEL gcc-install]# rpm -ivh glibc-headers-2.12-1.7.el6.x86_64.rpm
warning: glibc-headers-2.12-1.7.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        kernel-headers is needed by glibc-headers-2.12-1.7.el6.x86_64
        kernel-headers >= 2.2.1 is needed by glibc-headers-2.12-1.7.el6.x86_64
[root@CP-RHEL gcc-install]# ls
binutils-2.20.51.0.2-5.11.el6.x86_64.rpm  glibc-devel-2.12-1.7.el6.x86_64.rpm
cpp-4.4.4-13.el6.x86_64.rpm               glibc-headers-2.12-1.7.el6.x86_64.rpm
gcc-4.4.4-13.el6.x86_64.rpm               kernel-headers-2.6.32-71.el6.x86_64.rpm
[root@CP-RHEL gcc-install]# rpm -ivh kernel-headers-2.6.32-71.el6.x86_64.rpm
warning: kernel-headers-2.6.32-71.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:kernel-headers         ########################################### [100%]
[root@CP-RHEL gcc-install]# ls
binutils-2.20.51.0.2-5.11.el6.x86_64.rpm  glibc-devel-2.12-1.7.el6.x86_64.rpm
cpp-4.4.4-13.el6.x86_64.rpm               glibc-headers-2.12-1.7.el6.x86_64.rpm
gcc-4.4.4-13.el6.x86_64.rpm               kernel-headers-2.6.32-71.el6.x86_64.rpm
[root@CP-RHEL gcc-install]# rpm -ivh glibc-devel-2.12-1.7.el6.x86_64.rpm
warning: glibc-devel-2.12-1.7.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        glibc-headers is needed by glibc-devel-2.12-1.7.el6.x86_64
        glibc-headers = 2.12-1.7.el6 is needed by glibc-devel-2.12-1.7.el6.x86_64
[root@CP-RHEL gcc-install]# rpm -ivh glibc-headers-2.12-1.7.el6.x86_64.rpm
warning: glibc-headers-2.12-1.7.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-headers          ########################################### [100%]
[root@CP-RHEL gcc-install]# rpm -ivh glibc-devel-2.12-1.7.el6.x86_64.rpm
warning: glibc-devel-2.12-1.7.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:glibc-devel            ########################################### [100%]
[root@CP-RHEL gcc-install]# rpm -ivh cpp-4.4.4-13.el6.x86_64.rpm
warning: cpp-4.4.4-13.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        libmpfr.so.1()(64bit) is needed by cpp-4.4.4-13.el6.x86_64
[root@CP-RHEL gcc-install]# ^C
[root@CP-RHEL gcc-install]# ^C
[root@CP-RHEL gcc-install]# ^C
[root@CP-RHEL gcc-install]# ^C
[root@CP-RHEL gcc-install]# ls
binutils-2.20.51.0.2-5.11.el6.x86_64.rpm  glibc-headers-2.12-1.7.el6.x86_64.rpm
cpp-4.4.4-13.el6.x86_64.rpm               kernel-headers-2.6.32-71.el6.x86_64.rpm
gcc-4.4.4-13.el6.x86_64.rpm               mpfr-2.4.1-6.el6.x86_64.rpm
glibc-devel-2.12-1.7.el6.x86_64.rpm       ppl-0.10.2-11.el6.x86_64.rpm
[root@CP-RHEL gcc-install]# rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
warning: mpfr-2.4.1-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:mpfr                   ########################################### [100%]
[root@CP-RHEL gcc-install]# rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
warning: ppl-0.10.2-11.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:ppl                    ########################################### [100%]
[root@CP-RHEL gcc-install]# rpm -ivh cpp-4.4.4-13.el6.x86_64.rpm
warning: cpp-4.4.4-13.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:cpp                    ########################################### [100%]
[root@CP-RHEL gcc-install]# rpm -ivh binutils-2.20.51.0.2-5.11.el6.x86_64.rpm
warning: binutils-2.20.51.0.2-5.11.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
        package binutils-2.20.51.0.2-5.11.el6.x86_64 is already installed
[root@CP-RHEL gcc-install]# rpm -ivh gcc-4.4.4-13.el6.x86_64.rpm
warning: gcc-4.4.4-13.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
        cloog-ppl >= 0.15 is needed by gcc-4.4.4-13.el6.x86_64
[root@CP-RHEL gcc-install]# ^C
[root@CP-RHEL gcc-install]# rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
warning: cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:cloog-ppl              ########################################### [100%]
[root@CP-RHEL gcc-install]# rpm -ivh gcc-4.4.4-13.el6.x86_64.rpm
warning: gcc-4.4.4-13.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:gcc                    ########################################### [100%]
[root@CP-RHEL gcc-install]# gcc
gcc: 没有输入文件

上一篇:Microsoft SQL Server 数据库服务器管理维护角色


下一篇:WINDOWS下如何安装GCC(转载http://nirvana.cublog.cn;作者:北斗星君(黄庠魁))