Обсуждение: Install problems (libpq.so.1)

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

Install problems (libpq.so.1)

От
astromonk
Дата:
Hello:

where can I find libpq.so.1?

I am trying to install DBI/DBD for postgreSQL. I found
perl-DBI-1.06-1.i386.rpm on rpmfind.net and it installed just fine but
when I tried to install perl-DBD-Pg-0.91-1.i386.rpm I get a message that

this package needs libpq.so.1.  What package do I need to install to
find libpq.so.1?  Is there a later version of perl-DBD in RPMS format
out there?
I am really adverse to putting anything on my system that is not in rpm
format.

I have the following currently installed:

postgresql-clients-6.4.2-8mdk
postgresql-devel-6.4.2-8mdk
postgresql-data-6.4.2-4
postgresql-6.4.2-8mdk
perl-DBI-1.06-1
perl-5.00503-3mdk

I want to install:
perl-DBD-Pg-0.91-1.i386.rpm

thanks

astromonk
(please CC: me on email if you post to the mailing list)


Re: [ADMIN] Install problems (libpq.so.1)

От
"Robert J. Sprawls"
Дата:

On Sun, 1 Aug 1999, astromonk wrote:

> Hello:
>
> where can I find libpq.so.1?
>
> I am trying to install DBI/DBD for postgreSQL. I found
> perl-DBI-1.06-1.i386.rpm on rpmfind.net and it installed just fine but
> when I tried to install perl-DBD-Pg-0.91-1.i386.rpm I get a message that
>
> this package needs libpq.so.1.  What package do I need to install to
> find libpq.so.1?  Is there a later version of perl-DBD in RPMS format
> out there?
> I am really adverse to putting anything on my system that is not in rpm
> format.

libpq is the C programmer's interface to PostgreSQL server, and is
included with PostgreSQL. Do a "locate libpq" and see what version you
have. You might be able to get away with creating a symbolic link to one
of the libpq's you have. If not, you'll need to find an older version of
PostgreSQL or libpq or find a newer version of perl-DBD-Pg-0.91. Sometimes
you have to skirt the RPM.

Robert



Install problems (libpq.so.1)

От
astromonk
Дата:
hello again:

libpq.so.2 is symlinked to libpq.so.  I copied libpq.so to libpq.so.1 and then
reran >/sbin/ldconfig (/usr/lib is found in /etc/ld.so.conf where all libpq.so
files are found - I could not find any .so's under the postgres installation
directorys) I then ran  >rpm -Uvh perl-DBD-pg.rpm is still giving me problems
saying it cannot find libpq.so.1.

Even though I copied libpq.so to libpq.so.1 locate libpq does not list
libpq.so.1.  If I can make locate find the .so.1 then I think the rpm install
will work.  I do not need to use the C programmers interface only perl will be
connecting to postgres so I hope I will not run into compatibility problems by
installing a version of DBD that was not made for PostgreSQL 6.4.2.

I really cannot go back and install a previous version of PostgreSQL because I
am working on a large open source project and all other members of the team
are on 6.4.2.

thanks

Astro

"Robert J. Sprawls" wrote:

> On Sun, 1 Aug 1999, astromonk wrote:
>
> > Hello:
> >
> > where can I find libpq.so.1?
> >
> > I am trying to install DBI/DBD for postgreSQL. I found
> > perl-DBI-1.06-1.i386.rpm on rpmfind.net and it installed just fine but
> > when I tried to install perl-DBD-Pg-0.91-1.i386.rpm I get a message that
> >
> > this package needs libpq.so.1.  What package do I need to install to
> > find libpq.so.1?  Is there a later version of perl-DBD in RPMS format
> > out there?
> > I am really adverse to putting anything on my system that is not in rpm
> > format.
>
> libpq is the C programmer's interface to PostgreSQL server, and is
> included with PostgreSQL. Do a "locate libpq" and see what version you
> have. You might be able to get away with creating a symbolic link to one
> of the libpq's you have. If not, you'll need to find an older version of
> PostgreSQL or libpq or find a newer version of perl-DBD-Pg-0.91. Sometimes
> you have to skirt the RPM.
>
> Robert


Re: [ADMIN] Install problems (libpq.so.1)

От
"Oliver Elphick"
Дата:
astromonk wrote:
  >hello again:
  >
  >libpq.so.2 is symlinked to libpq.so.  I copied libpq.so to libpq.so.1 and th
      >en
  >reran >/sbin/ldconfig (/usr/lib is found in /etc/ld.so.conf where all libpq.
      >so
  >files are found - I could not find any .so's under the postgres installation
  >directorys) I then ran  >rpm -Uvh perl-DBD-pg.rpm is still giving me problem
      >s
  >saying it cannot find libpq.so.1.
  >
  >Even though I copied libpq.so to libpq.so.1 locate libpq does not list
  >libpq.so.1.  If I can make locate find the .so.1 then I think the rpm instal
      >l
  >will work.  I do not need to use the C programmers interface only perl will
      >be
  >connecting to postgres so I hope I will not run into compatibility problems
      >by
  >installing a version of DBD that was not made for PostgreSQL 6.4.2.
  >
  >I really cannot go back and install a previous version of PostgreSQL because
      > I
  >am working on a large open source project and all other members of the team
  >are on 6.4.2.

The shared library's identity is compiled into it and I don't think you can
do what you want by renaming it.  It is probably undesirable in any case
because the new library has changed its interface - that's why it changed
its identity.

What you need to do is get the source of DBD and compile it so that it will link to libpq.so.2.   This is a lot more
likelyto succeed than hacking your 
libraries around.

--
      Vote against SPAM: http://www.politik-digital.de/spam/
                 ========================================
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "And why call ye me, Lord, Lord, and do not the things
      which I say?"                   Luke 6:46