Can't locate DBD/mysql.pm Error
Posted by: zj82119 (146.229.119.---)
Date: March 06, 2009 11:10PM

I tried to run a database connection perl script.
It shows:"install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains:
e:/wamp/bin/perl/site/lib e:/wamp/bin/perl/lib .) at (eval 4) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge, mysqlPP."



Edited 4 time(s). Last edit at 03/07/2009 02:46AM by zj82119.

Options: ReplyQuote
Re: Can't locate DBD/mysql.pm Error
Posted by: yfastud (Moderator)
Date: March 07, 2009 12:16AM

first thing first, can you run a simple Perl script? if not, follow this
[blog.jlbn.net]
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Can't locate DBD/mysql.pm Error
Posted by: zj82119 (146.229.119.---)
Date: March 07, 2009 02:45AM

I solved this.
I found it is because activeperl 5.10 doesn't have dbd:sql, need to be manually download
by using "wperl.exe -x ppm install [cpan.uwinnipeg.ca]"

Options: ReplyQuote


Sorry, only registered users may post in this forum.