Обсуждение: Dependency conflicts on CentOS 4.4

Поиск
Список
Период
Сортировка

Dependency conflicts on CentOS 4.4

От
Gunnar Wagenknecht
Дата:
Hi!

I installed PostgreSQL on CentOS 4.4 using the packages provided at:
ftp://ftp.postgresql.org/pub/binary/v8.2.0/linux/rpms/redhat/rhel-es-4/

I installed using:
#yum localinstall compat-postgresql-libs-4-2PGDG.rhel4.i686.rpm
#yum localinstall postgresql-8.2.0-2PGDG.i686.rpm
postgresql-server-8.2.0-2PGDG.i686.rpm postgresql-libs-8.2.0-2PGDG.i686.rpm


However, I'm having dependency resolutions problems now when installing
'perl-DBD-Pg'.

# yum install perl-DBD-Pg
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package perl-DBD-Pg.i386 0:1.31-6 set to be updated
--> Running transaction check
--> Processing Dependency: libpq.so.3 for package: perl-DBD-Pg
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql-libs.i386 0:7.4.13-2.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Dependency: libpq.so.5 for package: postgresql-server
--> Processing Conflict: compat-postgresql-libs conflicts
postgresql-libs < 8.1.5
--> Processing Dependency: libpq.so.5 for package: postgresql
--> Finished Dependency Resolution
Error: Missing Dependency: libpq.so.5 is needed by package postgresql-server
Error: compat-postgresql-libs conflicts with postgresql-libs < 8.1.5
Error: Missing Dependency: libpq.so.5 is needed by package postgresql


Do I need to look for a different 'perl-DBD-Pg' that doesn't depend on
'libpq.so.3' or should 'libpq.so.3' be provided by
'postgresql-libs-8.2.0-2PGDG.i686.rpm'?


Thanks,
Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/

Re: Dependency conflicts on CentOS 4.4

От
Devrim GUNDUZ
Дата:
Hi,

On Thu, 2007-01-04 at 16:57 +0100, Gunnar Wagenknecht wrote:

> Do I need to look for a different 'perl-DBD-Pg' that doesn't depend on
> 'libpq.so.3' or should 'libpq.so.3' be provided by
> 'postgresql-libs-8.2.0-2PGDG.i686.rpm'?

Install this package:

http://developer.postgresql.org/~devrim/rpms/compat/compat-postgresql-libs-3-3PGDG.i686.rpm

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/




Вложения

Re: Dependency conflicts on CentOS 4.4

От
Tony Caduto
Дата:
Gunnar Wagenknecht wrote:
>
>
> Do I need to look for a different 'perl-DBD-Pg' that doesn't depend on
> 'libpq.so.3' or should 'libpq.so.3' be provided by
> 'postgresql-libs-8.2.0-2PGDG.i686.rpm'?
>
>
>
Just make a symbolic link from the shipped libpq.so.5 to libpq.so.3 and
it should work.

Yum kind of stinks because you can't do a --nodeps or force.
You might want to download the perl dbd rpm and install manually without
Yum.

Later,

--
Tony Caduto
AM Software Design
http://www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql
Your best bet for Postgresql Administration


Re: Dependency conflicts on CentOS 4.4

От
"Brian Mathis"
Дата:
On 1/4/07, Tony Caduto <tony_caduto@amsoftwaredesign.com> wrote:
Gunnar Wagenknecht wrote:
>> Do I need to look for a different 'perl-DBD-Pg' that doesn't depend on
> 'libpq.so.3' or should 'libpq.so.3' be provided by
> 'postgresql-libs-8.2.0-2PGDG.i686.rpm'?
>
Just make a symbolic link from the shipped libpq.so.5 to libpq.so.3 and
it should work.

Yum kind of stinks because you can't do a --nodeps or force.
You might want to download the perl dbd rpm and install manually without
Yum.

Later,

--
Tony Caduto


While this may work, it pretty much defeats the purpose of using rpm and yum to manage your packages.  Devrim's suggestion is really the best way to go (as are most of his suggestions).  I have used the compat rpm before, and it works like a charm.

Usually nodeps and force are there for a reason, defeating them is usually not what you want.

Re: Dependency conflicts on CentOS 4.4

От
Gunnar Wagenknecht
Дата:
Devrim GUNDUZ wrote:
> Install this package:
>
> http://developer.postgresql.org/~devrim/rpms/compat/compat-postgresql-libs-3-3PGDG.i686.rpm

Thanks, it worked. But I had to remove
compat-postgresql-libs-4-2PGDG.rhel4.i686.rpm for this one to work. What
if some client needs libpq.so.4?

Generally, I like to use "yum localinstall" wherever possible.

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/

Re: Dependency conflicts on CentOS 4.4

От
Gunnar Wagenknecht
Дата:
Michael Best wrote:
> 8.1.4 is also in CentosPlus
>
> They are apparently following a RH RPM that is at revision 8.1.4
> http://mirror.centos.org/centos/4/centosplus/Readme.txt

Thanks for the tip!

Cu, Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/

Re: Dependency conflicts on CentOS 4.4

От
Devrim GUNDUZ
Дата:
Hi,

On Fri, 2007-01-05 at 07:33 +0100, Gunnar Wagenknecht wrote:
> Thanks, it worked. But I had to remove
> compat-postgresql-libs-4-2PGDG.rhel4.i686.rpm for this one to work.
> What if some client needs libpq.so.4?

I had the same issue in my box a few days before. I had to do rpm -ivh
--force . The real solution could be renaming RPMs with
compat-postgresql-libs3 and compat-postgresql-libs4, but it is too late
now. So use --force .

Regards,

--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/




Вложения