On Tue, Jan 29, 2008 at 04:24:05AM -0800, Glyn Astill wrote: > I'm trying yo run a perl script that uses DBI (Slonys > psql_replication_check.pl to be precise) and I'm getting the error: > > Can't locate Pg.pm in @INC > > Now I do have the file in /usr/lib/perl5/DBD/ but the script can't > see it. I'm guessing that unless I fudge it and put the absoloute > path in the script, I need to set some sort of path somewhere, but > I'm lost as to what or where. > > Could someone point me in the correct direction please? Run perl -V and see if the path is there for @INC. If it's there, check such things as permissions. If not, ponder deeply as to why this is so (as /usr/lib/perl5 is a standard path for perl in /usr) and if you can't fix it 'properly' you can work-around with the use of 'use lib' (see perldoc perlvar and search for @INC). -- "To the extent that we overreact, we proffer the terrorists the greatest tribute." - High Court Judge Michael Kirby ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match