Hello there, I couldn't find the similar answer in mailing lists. I hope someone can have a good solution.
I am using cygwin. I have MySQL and DBI(1.21) installed. When I tried to install DBD::mysql (2.1012), I tried both ways. First, perl -MCPAN -e shell. Second, menually compile. I have problems in both. For the second case, the mysql.dll can't be generated. I would appreciate if someone can answer my question. Coco The following is the error message: ----case 2: Manually compiled-------- gcc -c -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -I/usr/local/mysql /include -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEI MPORTLIB -O2 -DVERSION=\"2.1011\" -DXS_VERSION=\"2.1011\" -I/usr/lib/perl5/5. 6.1/cygwin-multi/CORE dbdimp.c gcc -c -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI -I/usr/local/mysql /include -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include -DUSEI MPORTLIB -O2 -DVERSION=\"2.1011\" -DXS_VERSION=\"2.1011\" -I/usr/lib/perl5/5. 6.1/cygwin-multi/CORE mysql.c Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.dll LD_RUN_PATH="" /usr/bin/perl myld ld2 -s -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.dll /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libpe rl5_6_1.a dllwrap --dllname mysql.dll --driver-name gcc --dlltool dlltool --export-all-sym bols --as as --output-def libmysql.def --output-lib libmysql.a \ -s -L/usr/local/lib dbdimp.o mysql.o /usr/lib/perl5/5.6.1/cygwin-multi/CORE/lib perl5_6_1.a chmod 755 blib/arch/auto/DBD/mysql/mysql.dll chmod: getting attributes of `blib/arch/auto/DBD/mysql/mysql.dll': No such file or directory make: *** [blib/arch/auto/DBD/mysql/mysql.dll] Error 1 ---case 1--- DBD-mysql-2.1011/constants.h Removing previously used /home/default/.cpan/build/DBD-mysql-2.1011 CPAN.pm: Going to build J/JW/JWIED/DBD-mysql-2.1011.tar.gz Can't exec "mysql_config": No such file or directory at Makefile.PL line 167. readline() on closed filehandle PIPE at Makefile.PL line 169. Can't exec "mysql_config": No such file or directory at Makefile.PL line 167. readline() on closed filehandle PIPE at Makefile.PL line 169. Can't exec "mysql_config": No such file or directory at Makefile.PL line 167. readline() on closed filehandle PIPE at Makefile.PL line 169. Can't exec "mysql_config": No such file or directory at Makefile.PL line 167. readline() on closed filehandle PIPE at Makefile.PL line 169. Can't exec "mysql_config": No such file or directory at Makefile.PL line 167. readline() on closed filehandle PIPE at Makefile.PL line 169. Can't exec "mysql_config": No such file or directory at Makefile.PL line 167. readline() on closed filehandle PIPE at Makefile.PL line 169. Failed to determine directory of libmysqlclient.a|libmysqlclient.so. Use perl Makefile.PL "--libs=-L<dir> -lmysqlclient" to set this directory. For details see the INSTALL.html file, section "Linker flags" or type perl Makefile.PL --help Running make test Make had some problems, maybe interrupted? Won't test Running make install