1826325 Members
3552 Online
109692 Solutions
New Discussion

perl & DBI

 
Ratzie
Super Advisor

perl & DBI

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 intalled.
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?
1 REPLY 1
Alexander Chuzhoy
Honored Contributor

Re: perl & DBI

All installed modules should be in path, that is kept in @INC.Since DBI isn't there- I'd assume it's not installed...
You can install the DBI with the following command:
perl -MCPAN -e 'install DBI'
or download the zipped tar from http://search.cpan.org/~timb/DBI-1.53/DBI.pm