Click here to get back home

can't locate pg

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
can't locate pg pu 01-16-2005
Posted by pu on January 16, 2005, 6:42 pm
Please log in for more thread options
Hi all,

I have Perl scripts on Linux 6.2 that have run flawlessly. I now am trying
Linux9.0 with Perl 5.8. Where ever I have the line
use Pg;
it seems to fail. The httpd error_log displays this line.
===begin===
[Sun Jan 16 17:38:13 2005] [error] [client 192.168.0.192] Can't locate Pg.pm
in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
/var/www/cgi-bin/menujob.pl line 5., referer: http://linlee/lephro/main.htm
===end===

I have searched google and although there is a lot of answers to my
problems, none seem solve this for me.

Can anyone shed some light or point me in the right direction?

Regards
Leigh

cc to leejen666@hotmail.com





Posted by Dave Cross on January 16, 2005, 10:13 am
Please log in for more thread options
On Sun, 16 Jan 2005 17:42:24 +1000, pu wrote:

> Hi all,
>
> I have Perl scripts on Linux 6.2 that have run flawlessly. I now am trying
> Linux9.0 with Perl 5.8. Where ever I have the line
> use Pg;
> it seems to fail. The httpd error_log displays this line.
> ===begin===
> [Sun Jan 16 17:38:13 2005] [error] [client 192.168.0.192] Can't locate Pg.pm
> in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
> /var/www/cgi-bin/menujob.pl line 5., referer: http://linlee/lephro/main.htm
> ===end===
>
> I have searched google and although there is a lot of answers to my
> problems, none seem solve this for me.
>
> Can anyone shed some light or point me in the right direction?

Pg.pm is an old module for accessing PostgreSQL databases from Perl. See
http://search.cpan.org/dist/pgsql_perl5/, but note that it hasn't been
updated for almost five years.

It's not a standard Perl module and you'll need to download and install it
separately. However, you'll be far better advised to switch your program
to using DBI and DBD::Pg instead.

Dave...





Posted by pu on January 16, 2005, 9:23 pm
Please log in for more thread options

> On Sun, 16 Jan 2005 17:42:24 +1000, pu wrote:
>
[some deleted]
>
> Pg.pm is an old module for accessing PostgreSQL databases from Perl. See
> http://search.cpan.org/dist/pgsql_perl5/, but note that it hasn't been
> updated for almost five years.
>
> It's not a standard Perl module and you'll need to download and install it
> separately. However, you'll be far better advised to switch your program
> to using DBI and DBD::Pg instead.
>
> Dave...

Thanks Dave. I guess that means I have to rewrite some library functions to
take advantage of DBI. I was just looking at it by coincidence.

Regards
Leigh




Similar ThreadsPosted
Can't locate Tk/MDI/ChildWindow.pm September 23, 2006, 11:41 pm
Perl & DBI cannot locate November 20, 2006, 2:07 pm
Can't locate DBD/ODBC.pm in @INC November 20, 2008, 11:55 am
Can't locate loadable object August 4, 2005, 12:18 am
Can't locate loadable object for module June 22, 2005, 12:37 pm
Can't locate object method "ymd" via package... August 3, 2007, 6:14 am
Module problem - Can't locate Mail/Sender.pm in @INC October 22, 2004, 11:19 am
Net::SMTP error: Can't locate Mail/Sender.pm in @INC May 19, 2005, 10:33 am
Pg.pm Question - Can't locate object method driver October 31, 2004, 9:17 pm
Can't locate object method "new" via package "Net::SMTP" November 2, 2004, 6:36 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap