PDA

View Full Version : Problem rebuilding Apache


j_freeman
02-09-2007, 02:40 PM
I'm trying to update PHP, but when I try rebuilding Apache, I get this error:

Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed.

Any ideas? I've successfully rebuilt Apache in the past.

Jeff
02-09-2007, 02:43 PM
mv /var/cpanel/useyum /var/cpanel/useyum.tmp
rebuild Apache+PHP
mv /var/cpanel/useyum.tmp /var/cpanel/useyum

Technical details about this issue can be found here:
http://forums.cpanel.net/showpost.php?p=290503&postcount=2

Please let me know if that helps, thanks.

Jeff
02-09-2007, 02:47 PM
Alternately, you could reinstall/update yum to get it working correctly, using the pertinent sections from the VDS rebuild script, located here:

http://my.myriadnetwork.com/kb/questions.php?questionid=112

The sections that would apply here are this:

# Install necessary yum RPMS

and this:

# Set up our own repo

j_freeman
02-09-2007, 03:28 PM
Thanks Jeff! I tried your first suggestion, and it worked great. :)

Just curious, is my yum out-of-date... is that why I had this problem? I know that when I tried doing a yum info on glibc, it kept receiving a 404 from http://mirror.myriadnetwork.com/centos/4.3/contrib/i386/repodata/repomd.xml.

I'll go ahead and reinstall yum to fix it permanently.

Jeff
02-09-2007, 03:34 PM
Hi,

A few months back CentOS restructured a few things, so the URL with the 4.3/ directory in the path is no longer valid. You can read a little about their restructuring here: http://mirror.myriadnetwork.com/centos/4.3/readme

Basically, the updated links point to 4/ instead of 4.3/

Your yum application itself is likely ok, even if a little dated, but the paths listed in the repo would be non functional since they included the older, now deprecated paths to the 4.3/ directory tree.

If you have any questions or need assistance getting yum back to normal, please feel free to let us know.