Re: Adding a library to @INC
- From: wiggins@xxxxxxxxxxxx (Wiggins d'Anconia)
- Date: Wed, 27 Jul 2005 13:09:52 -0600
Jay Caviness wrote:
> I have discovered that my Oracle installation has the DBI.pm module in
> it. I really want to use this, but don't know how to have the @INC see
> it when I do:
>
> oracle> perl -e "use DBI;"
>
> Can't locate DBI.pm in @INC (@INC contains:
> /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
> /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
> /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
> /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
Normally you add to the @INC using the PERL5LIB environment variable. If
"oracle>" represents a normal bash shell, then,
export PERL5LIB="/path/to/lib/dir"
Should do the trick. If it is actually the Oracle client then you might
try the same because *theoretically* the subprocess should inherit and
respect the same environment.
HTH,
http://danconia.org
.
- Follow-Ups:
- Re: Adding a library to @INC
- From: Tom Allison
- Re: Adding a library to @INC
- References:
- Adding a library to @INC
- From: Jay Caviness
- Adding a library to @INC
- Prev by Date: Re: Adding a library to @INC
- Next by Date: RE: Help: automated email forwarding similar to .forward
- Previous by thread: Re: Adding a library to @INC
- Next by thread: Re: Adding a library to @INC
- Index(es):
Relevant Pages
|