Re: OT - pg perl DBI question
От | CaT |
---|---|
Тема | Re: OT - pg perl DBI question |
Дата | |
Msg-id | 20080129123028.GE4228@zip.com.au обсуждение исходный текст |
Ответ на | OT - pg perl DBI question (Glyn Astill <glynastill@yahoo.co.uk>) |
Ответы |
Re: OT - pg perl DBI question
|
Список | pgsql-general |
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
В списке pgsql-general по дате отправления: