Re: Perl & DBI cannot locate



LHradowy wrote:
I just installed:
perl 5.8.7 + defined-or + DBI 1.48 + Tk 804.027 built with gcc-4.0.0
From:
http://mirrors.develooper.com/hpux/downloads.html

I was under the assumption that the DBI module was installed.
When I do:
perldoc DBI
I get the docs for DBI

But when I try to use DBI I get an error...
Can't locate DBI.pm in @INC (@INC contains:
/opt/perl64/lib/5.8.8/PA-RISC2.0-LP64 /opt/perl64/lib/5.8.8
/opt/perl64/lib/site_perl/5.8.8/PA-RISC2.0-LP64
/opt/perl64/lib/site_perl/5.8.8 /opt/perl64/lib/site_perl .) at test2
line 27.
BEGIN failed--compilation aborted at test2 line 27.

My path points to /usr/bin/perl.
lrwxr-xr-x 1 root sys 20 Nov 20 11:56 /usr/bin/perl ->
/opt/perl64/bin/perl

How can I tell if it is installed, or do I still need to install this.
Do I also need the oracle driver?

You tell us. You said you installed it. Did you or didn't you?

You said you got the docs for DBI. I presume this means you used
perldoc to find them? You can ask perldoc for the location of the
module...

perldoc -l DBI

If that fails, the obvious way to search for it is to actually try to
`find` it:

find / -name DBI.pm

If it's found, but
perl -MDBI -e1
still gives an error, then your PERL5LIB variable is probably not set
correctly. Update it to include the path of DBI.pm as found from your
`find` command.

And no, DBD::Oracle is not included with DBI. You'll have to install
it separately. Have a read of:
perldoc perlmodinstall

Paul Lalli

.



Relevant Pages

  • Re: Installing DBI module on Windows XP
    ... > I would like to install the DBI module on my Windows XP system. ... Assuming you have the Activestate distribution of Perl: ...
    (comp.lang.perl.misc)
  • Re: Perl & DBI cannot locate
    ... user@medusa$ perldoc -l DBI ... Cannot be used with the 64bit version of perl ... > I was under the assumption that the DBI module was installed. ... > How can I tell if it is installed, or do I still need to install this. ...
    (comp.lang.perl.modules)
  • Perl & DBI cannot locate
    ... I was under the assumption that the DBI module was installed. ... perldoc DBI ... How can I tell if it is installed, or do I still need to install this. ...
    (comp.lang.perl.modules)
  • Re: use DBI
    ... > I would like to put the DBI module on a linux box that does not have ... 249 # then install it again. ...
    (comp.lang.perl.misc)
  • RE: Question about bind_param and Oracle
    ... perldoc CGI::param --> it does not work. ... command instead of going through the existing AS' html on-line or CPAN ... Question about bind_param and Oracle ... It's in the DBI docs. ...
    (perl.dbi.users)