Home: Perl Programming Help: DBI:
Installing DBI

New User

Apr 6, 2005, 7:08 AM

Views: 4724
Installing DBI


I am using Perl V5.8.0 on AIX 5L with Oracle 9i. I am living some problems with DBI. Since I am not familiar with Perl too much I am not able to understand if DBI is installed or not. Can anyone helps me to learn if DBI is installed or not, if it is installed how to learn its version and if it is not how to install DBI and which version shoul be installed.


Thaumaturge / Moderator

Apr 8, 2005, 5:40 AM

Views: 4716
Re: [cetin] Installing DBI

To see if DBI is installed and to find out which version you have, run a command like this:

perl -MDBI -le 'print $DBI::VERSION'

If it isn't installed (or if it's an older version that you want to upgrade) then the easiest method is to use the 'cpan' command that comes with Perl.

cpan install DBI

Don't forget that if you want to talk to Oracle, then as well as DBI you will also need DBD::Oracle.

Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks