Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cygwin & DBI

Status
Not open for further replies.

tar565

Programmer
Jan 24, 2005
39
0
0
IE
I am using Cygwin and I have downloaded the lastest version of this module (DBI) which I wish to install:

I type:

perl makefile.pl
make
make test
make install.

When I run the script calling this module i get the following error. I have installed this module with ppm previously with no errors.

---------------
install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql
in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/p
erl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/
5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/li
b/perl5/vendor_perl/5.8 .) at (eval 40) line 3
Compilation failed in require at (eval 40) line 3.
 
Looks as if you need to install (or re-install) the module DBD::MySQL after you've installed DBI.

Mind you, I'm not saying DBI and DBD::MySQL will work under Cygwin, I haven't tried it.

Mike

You cannot really appreciate Dilbert unless you've read it in the
original Klingon.

Want great answers to your Tek-Tips questions? Have a look at faq219-2884

 
I am trying to install DBD::MySQL but when I perl makefile.pl I get the following error:

Can't exec "mysql_config": No such file or directory at makefile.pl line 7

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at makefile.pl line 2
Can't exec "mysql_config": No such file or directory at makefile.pl line 2
Can't exec "mysql_config": No such file or directory at makefile.pl line 2
Can't exec "mysql_config": No such file or directory at makefile.pl line 2
Can't exec "mysql_config": No such file or directory at makefile.pl line 2
Can't exec "mysql_config": No such file or directory at makefile.pl line 2
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
 
Those msgs tell you that your mysql config is not in your path.

why dont you try installing DBD::mysql from cygwin using MCPAN like this

Code:
%perl -MCPAN -e shell
  %cpan> install DBD::mysql

by the way, do you have mysql installed on Windows or on Cygwin?

TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top