Re: Adding a library to @INC



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
.



Relevant Pages

  • (Fwd) Re: The official word on Oracle 9i support in DBD::Oracle
    ... I've been trying to stand up a Perl setup on a RedHat Linux box as an expansion of portability of Perl ... We have Oracle 9.2.0.1.0 Administrator Client installed on the box, Pro*C seems to be working OK. ... seems to proceed OK until it hits a make error seeking two header files from the Oracle installation: ...
    (perl.dbi.users)
  • Re:(Oracle Installation error) What this error mean ? (Sambit Nanda)
    ... The best resource for Oracle on Linux is at: ... "Linux" technology link on the left hand side. ... (Oracle Installation error) What this error mean? ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: dbca hangs - Oracle 10gR2 RAC, Solaris 10, NetApp NFS
    ... NetApp NFS for datafile,voting disk, etc. ... Oracle installation, binaries, etc. are on local disks. ...
    (comp.databases.oracle.server)
  • Re: Oracle 9i rac with AIX Hacmp
    ... I remember there are some check scripts that Oracle installation ... The file $HOME/.rhosts of the user "oracle" contains the following ...
    (comp.databases.oracle.server)
  • Re: Oracle 9i rac with AIX Hacmp
    ... I remember there are some check scripts that Oracle installation ... The file $HOME/.rhosts of the user "oracle" contains the following ...
    (comp.databases.oracle.server)