Missing dependency in Virtualmin Apache rpm for CentOS 5.5

5 posts / 0 new
Last post
#1 Fri, 02/25/2011 - 16:20
Anonymous

Missing dependency in Virtualmin Apache rpm for CentOS 5.5

I'm working with a new installation of CentOS 5.5 and Virtualmin. I need to install the httpd-devel rpm to get the apxs utility. When I try installing it I receive this error:

  Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
  ---> Package mod_ssl.x86_64 2:2.2.3-43.3.vm set to be updated
  ---> Package php.x86_64 0:5.1.6-27.el5_5.3 set to be updated
  ---> Package php-pear.noarch 1:1.4.9-6.el5 set to be updated
  --> Processing Dependency: php-devel for package: php-pear
  ---> Package webalizer.x86_64 0:2.01_10-30.1 set to be updated
  --> Running transaction check
  --> Processing Dependency: httpd = 2.2.3-43.el5.centos.3 for package: httpd-devel
  ---> Package php-devel.x86_64 0:5.1.6-27.el5_5.3 set to be updated
  --> Finished Dependency Resolution httpd-devel-2.2.3-43.el5.centos.3.i386 from installed has depsolving problems
  --> Missing Dependency: httpd = 2.2.3-43.el5.centos.3 is needed by package httpd-devel-2.2.3-43.el5.centos.3.i386 (installed)
  You could try using --skip-broken to work around the problem
  You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

I uninstalled Virtualmin (using the installer), installed the httpd and httpd-devel rpm's, then attempted to reinstall Virtualmin and it errors again.

Fri, 02/25/2011 - 17:37
helpmin

Not a solution, just a comment.

I remember that I compiled/installed a module for apache a while ago and also needed apxs. I did not encounter any issues when I installed all the required packages on Centos. So it definitely should work.

Thu, 03/17/2011 - 00:44
pjack

I was having the same problem. Virtualmin disabled the Centos-Base repo when it installs it so you can't get the necessary dependencies you need. Just go into the Centos-Base repo and enabled it. cd /etc/yum.repo.d/ nano CentOS-Base.repo

Under the base add the enabled option.
[base]
gpgcheck=1
enabled=1

Save the file Then go back and do a yum install httpd-devel

It will resolve the dependencies. It took me a couple of hours to figure out what was wrong. very obnoxious. The VM repo must be pretty limited.

If you don't want to cause potential issues later, go back and disabled the repo. Just change enabled from 1 to 0 or just remove the line you added.

Thu, 03/17/2011 - 05:51 (Reply to #3)
Joe
Joe's picture

Virtualmin disabled the Centos-Base repo when it installs it so you can't get the necessary dependencies you need.

No it didn't. Our install doesn't touch the core CentOS repos. If yours was disabled, it happened somewhere other than during the Virtualmin installation. I definitely don't recommend disabling the core CentOS repositories, and it's not something our install scripts touch.

--

Check out the forum guidelines!

Thu, 03/17/2011 - 14:03 (Reply to #4)
pjack

Sorry, didn't mean to blame VM unnecessarily. I thought it might have. I didn't disable it and it was a clean install before I installed VM. It was probably something else or maybe another repo, not sure.

Topic locked