
The scenario is I want to install Apache (hereafter also known as httpd) on a basic plain-installed Red Hat Enterprise Linux 5.3 (hereafter known as RHEL 5.3). I thought it was quite straight forward but somehow it didn’t.
I’m using RHEL 5.3,
[root@m020600 ~]# uname -a && cat /etc/redhat-release Linux m020600 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux Server release 5.3 (Tikanga)
I mount my RHEL 5.3 DVD and try to install httpd. Crap, it failed with well-known dependencies issue.
[root@m020600 ~]# cd /media/RHEL_5.3\ i386\ DVD/Server/
[root@m020600 Server]# rpm -ivh httpd-2.2.3-22.el5.i386.rpm
warning: httpd-2.2.3-22.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libapr-1.so.0 is needed by httpd-2.2.3-22.el5.i386
libaprutil-1.so.0 is needed by httpd-2.2.3-22.el5.i386
So, I try to install httpd with apr and apr-util packages. Damn, it failed too.
[root@m020600 Server]# rpm -ivh httpd-2.2.3-22.el5.i386.rpm \
> apr-1.2.7-11.i386.rpm \
> apr-util-1.2.7-7.el5.i386.rpm
warning: httpd-2.2.3-22.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libpq.so.4 is needed by apr-util-1.2.7-7.el5.i386
This time, I installed httpd with apr, apr-util and postgresql-libs. Yay, finally it was working!
[root@m020600 Server]# rpm -ivh httpd-2.2.3-22.el5.i386.rpm \ > apr-1.2.7-11.i386.rpm \ > apr-util-1.2.7-7.el5.i386.rpm \ > postgresql-libs-8.1.11-1.el5_1.1.i386.rpm warning: httpd-2.2.3-22.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing... ########################################### [100%] 1:apr ########################################### [ 25%] 2:postgresql-libs ########################################### [ 50%] 3:apr-util ########################################### [ 75%] 4:httpd ########################################### [100%]
Legend
httpd: Apache HTTP Server
apr: Apache Portable Runtime library
apr-util: Apache Portable Runtime Utility library
postgresql-libs: The shared libraries required for any PostgreSQL clients.
httpd depends on apr and apr-util. apr and apr-util depend on postgresql-libs. So, it seems that I’m safe to say Apache (known as httpd) depends on PostgreSQL library in RHEL. wtf!
{ 8 } Comments
Why don’t you use yum?
yum install httpd
would have shown you all dependencies at once – not that I’d approve such strange dependencies. It’s a mystery to me too.
UsingChristian,
UsingThis is just a testing machine whereby I don’t have valid RHN subscription.
just create a file ‘/etc/yum.repos.d/iso.repo’ with folowing content
[rhel-iso]
name=Red Hat Enterprise Linux $releasever – $basearch – ISO
baseurl=http://127.0.0.1/iso/Server/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
if you have another webserver, you could happyli use it. if not, just adopt it nad use another method than http: in baseurl.
i used this when i was preparing production servers and didn’t have them registered in RHN at that time.
UsingIrwan, I’m working with CentOS but eventually that’s the same. You don’t need a RHN-subscription in order to use yum. Like jahor wrote, create a .repo-file in /etc/yum.repos.d, set up a local webserver for your repo and you’re fine.
Usingjahor & Christian,
UsingThanks for the suggestion. Nevertheless; prior to setup a webserver for my repo, I need to install httpd manually first (unless I can setup a webserver on other machine in advanced). Get what I mean ;)
hi, if https is missing after the instalation (just the base os is installed) then you could still use “baseurl=file:///media/youriso” in the repo file instead of the http:// path.
UsingThanks for the tips jahor :)
UsingThanks for the tips…Very useful help..
David
Using{ 1 } Trackback
[...] See the rest here: RHEL 5: Apache Depends On PostgreSQL Library [...]
Post a Comment