RedHat AS4上安装yum与gcc详细教程

1.RedHat AS4上如果没有安装yum,就先安装yum[root@st ~]#wget 下载yum软件[root@st ~]# tar zxvf yum_forAS4.tar.gzyum_forAS4/yum_forAS4/CentOS-Base.repoyum_forAS4/python-elementtree-1.2.6-7.el4.rf.i386.rpmyum_forAS4/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpmyum_forAS4/yum-2.4.2-0.4.el4.rf.noarch.rpmyum_forAS4/sqlite-2.8.16-1.2.el4.rf.i386.rpmyum_forAS4/python-sqlite-1.0.1-1.2.el4.rf.i386.rpm[root@st ~]# cd yum_forAS4[root@st yum_forAS4]# lsCentOS-Base.repopython-elementtree-1.2.6-7.el4.rf.i386.rpmpython-sqlite-1.0.1-1.2.el4.rf.i386.rpmpython-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpmsqlite-2.8.16-1.2.el4.rf.i386.rpmyum-2.4.2-0.4.el4.rf.noarch.rpm[root@st yum_forAS4]# rpm -ivh *.rpmwarning: python-elementtree-1.2.6-7.el4.rf.i386.rpm: V3 DSA signature: NOKEY,key ID 6b8d79e6Preparing… ########################################### [100%] 1:sqlite ########################################### [ 20%] 2:python-sqlite ########################################### [ 40%] 3:python-urlgrabber ########################################### [ 60%] 4:python-elementtree ########################################### [ 80%] 5:yum ########################################### [100%][root@st yum_forAS4]# cp CentOS-Base.repo /etc/yum.repos.d/执行如下命令导入GPG Key[root@st yum_forAS4]# rpm –import CentOS-4现在yum就可以使用了。2.安装gcc[root@st squid-2.5.STABLE10-20050727]# ./configure –prefix=/usr/local/squidcreating cache ./config.cachechecking for a BSD compatible install… /usr/bin/install -cchecking whether build environment is sane… yeschecking for mawk… nochecking for gawk… gawkchecking whether make sets ${MAKE}… yeschecking whether to enable maintainer-specific portions of Makefiles… nochecking for gcc… nochecking for cc… noconfigure: error: no acceptable cc found in $PATH注:这个是未安装gcc编辑器的原因[root@st squid-2.5.STABLE10-20050727]# yum install gcc-bash: yum: command not found注:这个是未安装yum的原因现在开始安装gcc[root@st yum_forAS4]# yum install gccSetting up Install ProcessSetting up repositoriesupdate 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local filesprimary.xml.gz 100% |=========================| 158 kB 00:02 update : ################################################## 511/511Added 511 new packages, deleted 0 old in 4.88 secondsprimary.xml.gz 100% |=========================| 608 kB 00:04 base : ################################################## 1591/1591Added 1591 new packages, deleted 0 old in 13.19 secondsprimary.xml.gz 100% |=========================| 190 B 00:00 Added 0 new packages, deleted 0 old in 0.01 secondsprimary.xml.gz 100% |=========================| 38 kB 00:01 extras : ################################################## 172/172Added 172 new packages, deleted 0 old in 1.08 secondsParsing package install argumentsResolving Dependencies–> Populating transaction set with selected packages. Please wait.—> Downloading header for gcc to pack into transaction set.gcc-3.4.6-10.i386.rpm 100% |=========================| 44 kB 00:01 —> Package gcc.i386 0:3.4.6-10 set to be updated–> Running transaction check–> Processing Dependency: cpp = 3.4.6-10 for package: gcc–> Processing Dependency: libgcc >= 3.4.6-10 for package: gcc–> Processing Dependency: binutils >= 2.15.92.0.2-18 for package: gcc–> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc–> Restarting Dependency Resolution with new changes.–> Populating transaction set with selected packages. Please wait.—> Downloading header for binutils to pack into transaction set.binutils-2.15.92.0.2-25.i 100% |=========================| 41 kB 00:00 —> Package binutils.i386 0:2.15.92.0.2-25 set to be updated—> Downloading header for libgcc to pack into transaction set.libgcc-3.4.6-10.i386.rpm 100% |=========================| 35 kB 00:00 —> Package libgcc.i386 0:3.4.6-10 set to be updated—> Downloading header for glibc-devel to pack into transaction set.glibc-devel-2.3.4-2.41.el 100% |=========================| 97 kB 00:00 —> Package glibc-devel.i386 0:2.3.4-2.41.el4_7.1 set to be updated—> Downloading header for cpp to pack into transaction set.cpp-3.4.6-10.i386.rpm 100% |=========================| 37 kB 00:00 —> Package cpp.i386 0:3.4.6-10 set to be updated–> Running transaction check–> Processing Dependency: glibc = 2.3.4-2.41.el4_7.1 for package: glibc-devel–> Processing Dependency: glibc-headers = 2.3.4-2.41.el4_7.1 for package:

,最可怕的敌人,就是没有坚强的信念。

RedHat AS4上安装yum与gcc详细教程

相关文章:

你感兴趣的文章:

标签云: