Conflicts, dependencies: PostgreSQL 8.2.3 on RHEL4 / U4
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I arranged the RPMs to fit the sequence suggested by the pg folks. So the compatibility library is first, etc., in a script that attempts to install all of them.
There is no existing PostgreSQL on the box, although one library is apparently needed by something else (see below).
These are the first few messages from rpm. They cause a cascade of errors later, as one might expect.
Code:
error: Failed dependencies:
postgresql-libs < 8.1.5 conflicts with compat-postgresql-libs-4-2PGDG.rhel4.i686
warning: postgresql-libs-8.2.3-1PGDG.i686.rpm: V3 DSA signature: NOKEY, key ID 20579f11
error: Failed dependencies:
libpq.so.3 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i386
warning: postgresql-8.2.3-1PGDG.i686.rpm: V3 DSA signature: NOKEY, key ID 20579f11
error: Failed dependencies:
libpq.so.5 is needed by postgresql-8.2.3-1PGDG.i686
I didn't see anything in the brief install guide that mentioned this.
If you have any suggestions on how to deal with this, I'd appreciate hearing them ... cheers, makyo
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Try installing them all at once, from where the rpm packages are located type as root type;
rpm -Uvh *.rpm
Apparently you have a couple of other already installed packages causing these errors, installing multiple packages via a script or by hand can be a problem (Welcome to dependency Hell). Gathering all the packages needed/required in one common location and installing them all at once works better.
Thanks for the suggestion -- I would not have guessed that rpm would have a gestalt-like feature to do the re-arranging of rpms to satisfy dependencies, but that is a useful feature.
So I did that, and rpm suggested that I install a package mx. I did that with up2date. It was successful.
I then tried to install postgreSQL again, and got:
Code:
# rpm -Uvh *.rpm
warning: postgresql-8.2.3-1PGDG.i686.rpm: V3 DSA signature: NOKEY, key ID 20579f11
error: Failed dependencies:
libpq.so.3 is needed by (installed) cyrus-sasl-sql-2.1.19-5.EL4.i38
Is this the beginning of dependency hell for me?
Any further solutions come to mind? ... cheers, makyo
And removing cyrus-sasl-sql if possible: rpm -e cyrus-sasl-sql --test
What I have installed on my system (cyrus packages only) for this test;
$ rpm -qa 'cyrus*'
cyrus-sasl-plain-2.1.22-4
cyrus-sasl-md5-2.1.22-4
cyrus-sasl-lib-2.1.22-4
cyrus-sasl-lib-2.1.22-4
cyrus-sasl-plain-2.1.22-4
I erased package cyrus-sasl-sql, and installed pg 8.2.4 without trouble. Of course, I don't know if it runs correctly yet, but this helps move forward.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.