Linux环境下通过rpm安装gcc的顺序

首先查看Linux版本:

 

[root@host1-vm2 ~]# lsb_release -a
LSB Version:	:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:	RedHatEnterpriseServer
Description:	Red Hat Enterprise Linux Server release 5.4 Beta (Tikanga)
Release:	5.4
Codename:	Tikanga


上传版本所需要的rpm包

 

 

-rw-r--r-- 1 root root 5521285 2009-05-22 gcc-4.1.2-46.el5.x86_64.rpm
-rw-r--r-- 1 root root 3934300 2009-05-22 gcc-c++-4.1.2-46.el5.x86_64.rpm
-rw-r--r-- 1 root root 2524696 2009-05-22 glibc-devel-2.5-38.x86_64.rpm
-rw-r--r-- 1 root root  604558 2009-05-22 glibc-headers-2.5-38.x86_64.rpm
-rw-r--r-- 1 root root 1043099 2009-06-23 kernel-headers-2.6.18-155.el5.x86_64.rpm
-rw-r--r-- 1 root root   69699 2009-06-09 libgomp-4.4.0-6.el5.x86_64.rpm
-rw-r--r-- 1 root root 2942157 2009-05-22 libstdc++-devel-4.1.2-46.el5.x8

你可能感兴趣的:(Linux学习博客专栏)