1. If yum is not installed on RedHatAS4, install yum [root @ st ~] first. # Wgethttp: // img.linuxidc.com/attachments/month_1006/yum_foras4.tar.gzdownload yumsoftware unzip root@st~] #Tarzxvfyum_forAS4.tar.gz yum_forAS4/yum_forAS4/CentOS-Base.re
1. If yum is not installed on RedHat AS4, install yum first.
[Root @ st ~] # Wget http://img.linuxidc.com/attachments/month_1006/yum_forAS4.tar.gz download yum Software
[Root @ st ~] # Tar zxvf yum_forAS4.tar.gz
Yum_forAS4/
Yum_forAS4/CentOS-Base.repo
Yum_forAS4/python-elementtree-1.2.6-7.el4.rf.i386.rpm
Yum_forAS4/python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
Yum_forAS4/yum-2.4.2-0.4.el4.rf.noarch.rpm
Yum_forAS4/sqlite-2.8.16-1.2.el4.rf.i386.rpm
Yum_forAS4/python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
[Root @ st ~] # Cd yum_forAS4
[Root @ st yum_forAS4] # ls
CentOS-Base.repo
Python-elementtree-1.2.6-7.el4.rf.i386.rpm
Python-sqlite-1.0.1-1.2.el4.rf.i386.rpm
Python-urlgrabber-2.9.7-1.2.el4.rf.noarch.rpm
Sqlite-2.8.16-1.2.el4.rf.i386.rpm
Yum-2.4.2-0.4.el4.rf.noarch.rpm
[Root @ st yum_forAS4] # rpm-ivh *. rpm
Warning: python-elementtree-1.2.6-7.el4.rf.i386.rpm: V3 DSA signature: NOKEY,
Key ID 6b8d79e6
Preparing... ######################################## ### [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/
Run the following command to import the GPG Key:
[Root @ st yum_forAS4] # rpm -- import http://mirror.centos.org/centos/RPM-GPG-KEY-
CentOS-4
Now yum can be used.
2. Install gcc
[Root @ st squid-2.5.STABLE10-20050727] #./configure -- prefix =/usr/local/squid
Creating cache./config. cache
Checking for a BSD compatible install.../usr/bin/install-c
Checking whether build environment is sane... yes
Checking for mawk... no
Checking for gawk... gawk
Checking whether make sets $ {MAKE}... yes
Checking whether to enable maintainer-specific portions of Makefiles... no
Checking for gcc... no
Checking for cc... no
Configure: error: no acceptable cc found in $ PATH
Note: this is because the gcc editor is not installed.
[Root @ st squid-2.5.STABLE10-20050727] # yum install gcc
-Bash: yum: command not found
Note: this is because yum is not installed.
Install gcc now
[Root @ st yum_forAS4] # yum install gcc
Setting up Install Process
Setting up repositories
Update 100% | =================================| 951 B
Base 100% | =================================| 1.1 kB
Addons 100% | =============================| 951 B
Extras 100% | =============================| 1.1 kB
Reading repository metadata in from local files
Primary.xml.gz 100% | =======================| 158 kB
Update: ######################################## ######## 511/511
Added 511 new packages, deleted 0 old in 4.88 seconds
Primary.xml.gz 100% | =======================| 608 kB
Base: ######################################## ######## 1591/1591
Added 1591 new packages, deleted 0 old in 13.19 seconds
Primary.xml.gz 100% | =======================| 190 B
Added 0 new packages, deleted 0 old in 0.01 seconds
Primary.xml.gz 100% | =======================| 38 kB
Extras: ######################################## ######## 172/172
Added 172 new packages, deleted 0 old in 1.08 seconds
Parsing package install arguments
Resolving 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
---> Package gcc. i386. 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
---> 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
---> Package libgcc. i386. 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
---> Package glibc-devel.i386. 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
---> Package cpp. i386. 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: