I have a debian potato laptop where all the perl stuff (5.005) and
directories during the original installation where located under /usr/lib/perl5/5.005/.

Now, because I needed new DBI modules, following this list I've run as
root "perl -MCPAN -eshell", then at the cpan prompt "install
Bundle::CPAN", choosing /root for .cpan stuff and /usr/local/lib for
all the new stuff (perl 5.6.1).

Then I've installed under the cpan prompt DBI, DBD::Oracle, Pg, CSV,
ADO.

Now the situation is somewhat confusing.

The new *.pm (DBI, DBD, Pg, CSV etc.) are now under /root/.cpan, while
the new perl is under /usr/local/plib/perl5 where those *.pm I have
installed are not present.

As a consequence if I want to connect to a Postgresql db I have to run
the related perl script under /root/.cpan/build/DBI-1.18 as root (and
I succeed) otherwise as an ordinary user under its home dir perl says
that

---------------------------------------------------------------
install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC contains: 
/usr/local/lib/perl5/5.6.1/i686-linux /usr/local/lib/perl5/5.6.1 
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux /usr/local/lib/perl5/site_perl/5.6.1 
/usr/local/lib/perl5/site_perl .) at (eval 1) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: ADO, CSV, ExampleP, File, Multiplex, Proxy.
at myconn.pl line 4
----------------------------------------------------------------------------

My question are as simple as that:

1) What the hell @INC is and how can I modify it?

2) What should I do to put all right?

Ciao
Vittorio




Reply via email to