Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- To install mysql for DBI in Perl 5.6
May 3, 2005, 6:28 am
rate this thread
I have installed Active Perl 5.6 and DBI 1.48 in my XP system and the
list of the drivers doesnt seem to include mysql or Oracle.
Due to firewall restrictions, ppm> search mysql does not connect
either. So I downloaded mysql and tried perl Makefile.pl for that which
gave the following error:
'mysql_config' is not recognized as an internal or external command,
operable program or batch file.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Failed to determine directory of mysql.h. Use
perl Makefile.PL --cflags=-I<dir>
to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type
perl Makefile.PL --help
What does this error mean? how can I install mysql driver so that I can
connect to database from perl at the earliest. Is there any other
driver I can use in place of mysql?
Hope I get some help from you guys,
Re: To install mysql for DBI in Perl 5.6
> I have installed Active Perl 5.6 and DBI 1.48 in my XP system and the
> list of the drivers doesnt seem to include mysql or Oracle.
> Due to firewall restrictions, ppm> search mysql does not connect
Open, in a browser, C:/Perl/html/faq/ActivePerl-faq2.html#ppm - though you
might have to amend that link, depending upon where you have placed perl.
That will tell you how to deal with the "firewall restrictions".
> So I downloaded mysql and tried perl Makefile.pl for that which
> gave the following error:
I'm assuming you downloaded DBD::MySQL. You'll need a C compiler to build
that module. It's probably simpler for you to work around those firewall
restrictions, and install the DBD::MySQL ppm package. (If it's, in fact,
*not* simpler, then let us know ..... and someone mught be able to help :-)