背景:LINUX AS5
以前一直用的是LINUX AS4 现在改为LINUX AS5,在安装mysql的时候,时候发现没有安装gcc,于是开始安装gcc。
最简单的办法是:通过你的安装光盘或者iso镜像文件来安装GCC
原则,首先在自己光盘中搜索gcc的rpm包:先进入你mount的目录,然后find . -name "*gcc*"
直接进行第5步:rpm -ivh gcc-4.1.2-44.el5.i386.rpm,那么根据提示就知道怎么安装了。
最终整理的安装顺序为:
1、rpm -ivh kernel-headers-2.6.18-128.el5.i386.rpm
2、rpm -ivh glibc-headers-2.5-34.i386.rpm
3、rpm -ivh glibc-devel-2.5-34.i386.rpm
4、rpm -ivh libgomp-4.3.2-7.el5.i386.rpm
5、rpm -ivh gcc-4.1.2-44.el5.i386.rpm
---------以下是我的安装过程------------------------------------------
# rpm -ivh ./Server/gcc-4.1.2-44.el5.i386.rpm
error: Failed dependencies:
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-44.el5.i386
libgomp >= 4.1.2-44.el5 is needed by gcc-4.1.2-44.el5.i386
# find . -name "*glibc-devel*"
./Server/glibc-devel-2.5-34.i386.rpm
# rpm -ivh ./Server/glibc-devel-2.5-34.i386.rpm
error: Failed dependencies:
glibc-headers is needed by glibc-devel-2.5-34.i386
glibc-headers = 2.5-34 is needed by glibc-devel-2.5-34.i386
# find . -name "*glibc-headers*"
./Server/compat-glibc-headers-2.3.4-2.26.i386.rpm
./Server/glibc-headers-2.5-34.i386.rpm
# rpm -ivh ./Server/glibc-headers-2.5-34.i386.rpm
error: Failed dependencies:
kernel-headers is needed by glibc-headers-2.5-34.i386
kernel-headers >= 2.2.1 is needed by glibc-headers-2.5-34.i386
# find . -name "*kernel-headers*"
./Server/kernel-headers-2.6.18-128.el5.i386.rpm
# rpm -ivh ./Server/kernel-headers-2.6.18-128.el5.i386.rpm
Preparing... ########################################### [100%]
1:kernel-headers ########################################### [100%]
# rpm -Uvh ./Server/glibc-headers-2.5-34.i386.rpm
Preparing... ########################################### [100%]
1:glibc-headers ########################################### [100%]
# rpm -ivh ./Server/glibc-devel-2.5-34.i386.rpm
Preparing... ########################################### [100%]
1:glibc-devel ########################################### [100%]
# find . -name "*libgomp*"
./Server/libgomp-4.3.2-7.el5.i386.rpm
# rpm -ivh ./Server/libgomp-4.3.2-7.el5.i386.rpm
Preparing... ########################################### [100%]
1:libgomp ########################################### [100%]
# rpm -ivh ./Server/gcc-4.1.2-44.el5.i386.rpm
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]
-----------------------------------------------------------------------------
ps:若有不对之处,还请各位批评指正。
阅读(1904) | 评论(0) | 转发(0) |