Error while running DBI with Perl and MySQL
am 20.07.2006 17:50:22 von Robert.Keith
DBI Team
I am learning Perl and using the book from apress called Beginning
Perl. There is a section showing Perl and DBI.=20
I installed MySQL and was able to build the database as per the books
instructions. But when I try to run the Perl scripts to access the data
via DBI I get the following error.
C:\Perl\begperl\Chapter15>perl showmusicians.pl Can't locate object=20
>method "require_version" via package "DBI" at c:/perl/site/l=20
>ib/PerlEx/DBI.pm line 22.
>Compilation failed in require at showmusicians.pl line 5.
>BEGIN failed--compilation aborted at showmusicians.pl line 5.
This is all under Windows XP.
MySql 5.0 and Lastest Perl downloaded from the Perl.ORG website.
I have used DBI on linux to MySql and other databases so I have a little
experience with this.
Just not on the windows side. I also installed Apache for windows so I
can test some Perl CGI DBI applications.
Thanks any help you can offer.
Bob Keith
210 827 5343
Robert.keith@hp.com
Re: Error while running DBI with Perl and MySQL
am 21.07.2006 13:40:41 von scoles
Your bset bet would be to get Activeperl,
http://www.activestate.com/Products/ActivePerl/?psbx=1 it is free, Use thier
PPM and sarech and instlall DBI and DBD::Mysql. Things should work
perfectly after that.
""Keith, Robert"" wrote in message
news:DD681F21BE79FF4689CCA90C808A4A3A0324D8F5@cceexc13.ameri cas.cpqcorp.net...
DBI Team
I am learning Perl and using the book from apress called Beginning
Perl. There is a section showing Perl and DBI.
I installed MySQL and was able to build the database as per the books
instructions. But when I try to run the Perl scripts to access the data
via DBI I get the following error.
C:\Perl\begperl\Chapter15>perl showmusicians.pl Can't locate object
>method "require_version" via package "DBI" at c:/perl/site/l
>ib/PerlEx/DBI.pm line 22.
>Compilation failed in require at showmusicians.pl line 5.
>BEGIN failed--compilation aborted at showmusicians.pl line 5.
This is all under Windows XP.
MySql 5.0 and Lastest Perl downloaded from the Perl.ORG website.
I have used DBI on linux to MySql and other databases so I have a little
experience with this.
Just not on the windows side. I also installed Apache for windows so I
can test some Perl CGI DBI applications.
Thanks any help you can offer.
Bob Keith
210 827 5343
Robert.keith@hp.com