I recently wanted to add mod_ssl to a Centos 5 server that I administer. Simple enough. Eveything online says to just do a “yum install mod_ssl” and your done. Well I did “yum install mod_ssl” and I got the error message:
... Finished Dependency Resolution httpd-devel-2.2.3-31.el5.centos.2.i386 from updates has depsolving problems --> Missing Dependency: httpd = 2.2.3-31.el5.centos.2 is needed by package httpd-devel-2.2.3-31.el5.centos.2.i386 (updates) Error: Missing Dependency: httpd = 2.2.3-31.el5.centos.2 is needed by package httpd-devel-2.2.3-31.el5.centos.2.i386 (updates)
Great! Yum was suppose to handle all my dependencies for me but it looks like it is broken. I googled around for a bit and didn’t find anything help, just other people with a similar problem. Then, I did run across a message on the Centos mailing list that solved my problem.
Basically, the server I am running is 64 bit, but for some reason there was a 32 bit version of http-devel that was causing the conflict. Remove the 32 bit httpd-devel by doing “rpm -e httpd-devel.i386″. Then “yum install mod_ssl” will work just as easily as everyone says it does.