Click to See Complete Forum and Search --> : Cygwin & DBI


buggy
04-05-2005, 11:40 AM
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.

Note : test.pl line 149 is where I try and connect to the database.

------------------------

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.
Perhaps a module that DBD::mysql requires hasn't been fully installed
at test.pl line 149

Jeff Mott
04-05-2005, 04:08 PM
Quite simply, you also need to download and install the DBD::mysql module.

buggy
04-06-2005, 12:19 PM
when I try to perl makefile 'DBD::mysql', i get


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

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 246.
Can't exec "mysql_config": No such file or directory at makefile.pl line 246.
Can't exec "mysql_config": No such file or directory at makefile.pl line 246.
Can't exec "mysql_config": No such file or directory at makefile.pl line 246.
Can't exec "mysql_config": No such file or directory at makefile.pl line 246.
Can't exec "mysql_config": No such file or directory at makefile.pl line 246.
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