-----Original Message-----
From: Tyler MacDonald [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 2:54 PM
To: Kandi, Santosh
Cc: [email protected]
Subject: Re: Non-Standard Installation
>
> Kandi, Santosh <[EMAIL PROTECTED]> wrote:
> >
> > I thought that since DBI.pm and DBD (Oracle.pm) are basically Perl
> > modules I could just copy the pm modules in my personal lib and set
> > the PERL5LIB to point to them.
> >
> > Is my assumption wrong?
>
> They are basically perl modules, but they also have components written
> in C; you need to copy the accompanying .so files (DBI.so and
> Oracle.so) to the right place as well. You're probably better off just
> rebuilding them from CPAN with the appropriate PREFIX and LIB options
> to place them where you want.
Here's one way to do it:
wget http://www.perl.com/CPAN/modules/by-module/DBI/DBI-1.51.tar.gz
tar xvfz DBI-1.51.tar.gz
cd DBI-1.51.tar.gz
# change this directory to wherever you want to install the module
perl Makefile.PL INSTALLSITELIB=$HOME/lib
make test && make install
# should show the DBI module in your own lib directory
PERL5LIB=$HOME/lib perl -MDBI -le 'print $INC{"DBI.pm"}'
You can do the same thing with DBD::Oracle (but be sure to read the
documentation -- getting it to test properly requires a little effort).
Philip