Обсуждение: Error message when using perl to connect to Postgres Server

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

Error message when using perl to connect to Postgres Server

От
"Erik Colson"
Дата:
Hi!
 
I installed (compiled) latest versions of Perl, Postgres.
 
I can access the database via 'psql' but allways get an error when trying to connect from a perl-script :
 
The message is : Unsupported frontend protocol
 
As far as I could see, this has something to do with libpq ?
Is this correct ?
libpq.so.2 and libpq.so.3 are compiled with Postgres. What for libpq.so.1 ? I cannot find the sources anywhere, only the binary is on my system !
 
Thanks for help!
 
Erik

Re: [GENERAL] Error message when using perl to connect to Postgres Server

От
Chris Bitmead
Дата:
Make sure your perl DBD-Pg and DBI are compiled with the correct version
of postgres.

> Erik Colson wrote:
>
> Hi!
>
> I installed (compiled) latest versions of Perl, Postgres.
>
> I can access the database via 'psql' but allways get an error when
> trying to connect from a perl-script :
>
> The message is : Unsupported frontend protocol
>
> As far as I could see, this has something to do with libpq ?
> Is this correct ?
> libpq.so.2 and libpq.so.3 are compiled with Postgres. What for
> libpq.so.1 ? I cannot find the sources anywhere, only the binary is on
> my system !
>
> Thanks for help!
>
> Eri
--
Chris Bitmead
mailto:chris@tech.com.au
http://www.techphoto.org - Photography News, Stuff that Matters