I am attempting to install glibc-2.5.34.i386.rpm on RHEL 5 (necessary in order to install gcc, which in turn is needed to install Apache server). I mounted the RHEL 5 iso to /mnt and copied over the relevant RPM files to a separate directory). When I run rpm -ivh glibc-2.5-34.i386.rpm I am getting a dependency error stating the following:
error: Failed dependencies: glibc-common = 2.5-34 is need by glibc-2.5-34.i386
Okay, so I grabbed the glibc-common RPM from the RPM fiinder site and ran rpm -ivh on it. However, it complains that I have a newer version of glibc-common package installed (2.5-34.el5_3.1.i386) and then spits out a bunch of lines about conflicting files. So is there a way to somehow uninstall or rollback glibc-common to version 2.5-34 so that I can go ahead with the install of glibc?
Btw, I cannot use yum due to network connectivity issues.
Are you running "rpm" to install these packages? If so, perhaps you could try running "yum" instead, like so:
Yum tries to sort out dependencies for you.
And, if you don't really care about the glibc but are trying to install something else that depends on glibc, just use yum to install whatever it is you actually want to install. If you are trying to install gcc, try "yum install gcc".
Good luck.
EDIT: I am aware that you already have the "glibc" package installed. I meant to provide a sample command line, not the exact command line you need to type. If you are trying to install package "foo" with the rpm command-line tool, and rpm is complaining you need a different version of glibc, you might try
and see if yum can just solve the problem for you. On RHEL I try yum before I try rpm, just as on Ubuntu or Debian I try apt-get before I try dpkg. Use the higher-level tool with dependency resolution, rather than going to web sites and downloading packages by hand.
Step 1
You'll find .xml file at
/mnt/RHEL5.3/Server/repodata
. It will create repo for you from there you can install all need rpm for you and will not require and cd key.then edit base.repo /etc/yum.repos.d/
and then
It will install the rpm and dependencies
Step 2
If you have http://rhn.support.com
login name and password
You'll get gui screen you add you server to rhn network and then you can install using
Have you considered getting whichever version of
gcc
doesn't need a change ofglibc
and then building Apache from a sourcetar.gz
. I think Apache's default make files are pretty great, hence it's rapid popularity.Download all the latest updates from redhat for your version of RHEL, burn to a cd, stick in the drive, cd to the mount point &
rpm -Uvh glib*
and if any other dependencies are required, add them to your commandline
Ok, I know this question is 3 months old...but I actually did figure out how to install gcc on the server (no it didn't take me that long, I got busy with other things and found a way to get around it). I realized I needed to get newer versions of several RPMs (glibc-devel and glibc-headers just to name a few), so I was able to do a couple Google searches, ftp'd them over to the server and pretty soon I had it installed. Thanks everyone for your suggestions.