Re: Re: Cant get Perl Module loaded

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Re: Cant get Perl Module loaded
Дата
Msg-id 20010528205544.A319@klamath.dyndns.org
обсуждение исходный текст
Ответ на Re: Cant get Perl Module loaded  ("John" <vze23skh@verizon.net>)
Ответы Re: Re: Cant get Perl Module loaded  (will trillich <will@serensoft.com>)
Список pgsql-general
On Thu, May 24, 2001 at 01:33:46AM +0000, John wrote:
> Yes I posted a bunch of stuff way to hastily and was not clear.  I ran
>  perl -e 'use DBD::Pg' and got this:
>
> perl -e 'use DBD::Pg'
> Can't locate DBD/Pg.pm in @INC (@INC contains:
> /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .)
> at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
> I did a find as follows:
>
> joro@natascha:/usr/lib/perl5 > find . -name "Pg.pm" -print
> ./site_perl/5.005/i586-linux/Pg.pm

DBD::Pg and Pg.pm are completely different. The former is the Postgres
driver for DBI, the later is a Perl interface to libpq. The file you
have installed is the later, but your code is trying to use the
former.

To install DBD::Pg, download it from CPAN. Alternatively, use Pg.pm
instead -- see `perldoc Pg` for more info (although I would recommend
DBI, it's nicer IMHO).

Cheers,

Neil


В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Re: I want more Money (the data type, of course! :-))
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Re: Functional Indices