Non-Standard Installation

Non-Standard Installation

am 14.06.2006 20:51:23 von skandi

------_=_NextPart_001_01C68FE3.893C944D
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

=20

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?

=20

This method fails with and error like "Cant find loadable object for
module DBI".=20

Why does this fail? What else is DBI.pm looking for?

=20

Thanks in advance,

Santosh

=20

=20

=20

=20

=20

=20

=20


------_=_NextPart_001_01C68FE3.893C944D--

Re: Non-Standard Installation

am 14.06.2006 20:53:39 von Tyler

Kandi, Santosh wrote:
> Hello,
>
>
>
> 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.

Cheers,
Tyler

RE: Non-Standard Installation

am 14.06.2006 21:00:37 von Philip.Garrett

-----Original Message-----
From: Tyler MacDonald [mailto:tyler@yi.org]=20
Sent: Wednesday, June 14, 2006 2:54 PM
To: Kandi, Santosh
Cc: dbi-users@perl.org
Subject: Re: Non-Standard Installation
>=20
> Kandi, Santosh 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=3D$HOME/lib
make test && make install

# should show the DBI module in your own lib directory
PERL5LIB=3D$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

RE: Non-Standard Installation

am 14.06.2006 21:08:34 von skandi

Thanks for the quick response.

Well I am running into the following problem when I am using PREFIX and
LIB:
perl Makefile.PL PREFIX=3D/apps/adsm/perldbt =
LIB=3D/apps/adsm/perldbt/lib

Can't open PREFIX=3D/apps/adsm/perldbt: No such file or directory at
Makefile.PL l
ine 24.
Can't open LIB=3D/apps/adsm/perldbt/lib: No such file or directory at
Makefile.PL
line 24.

I checked the permissions all the way thru and gave 777 permissions, it
got back with same error.
Is this a problem with my Makemaker?
Also I am unable to set any variables like CC =3Dgcc.

I had to manually change everything in Makefile to install locally, but
was just wondering what could be the problem?

Thanks in advance.
Santosh



=20
-----Original Message-----
From: Tyler MacDonald [mailto:tyler@yi.org]=20
Sent: Wednesday, June 14, 2006 1:54 PM
To: Kandi, Santosh
Cc: dbi-users@perl.org
Subject: Re: Non-Standard Installation

Kandi, Santosh wrote:
> Hello,
>=20
> =20
>=20
> 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.
>=20
> 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.

Cheers,
Tyler