|
遇到的第一个问题:
D:\DBD-mysql>perl makefile.pl
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
怎么改路径?
F:\perl_modules\DBD-mysql-2.9005_3>perl
makefile.pl --cflags="-Ie:\mysql\include" --libs="-Le:\mysql
\lib -lmysqlclient"
'mysql_config' is not recognized as an internal or external command,
operable program or batch file.
[snipped warnings about mysql_config]
I will use the following settings for compiling and testing:
cflags (Users choice) = -Ie:\mysql\include
libs (Users choice) = -Le:\mysql\lib -lmysqlclient
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Using DBI 1.48 (for perl 5.008007 on MSWin32-x86-multi-thread) installed in C:/P
erl/site/lib/auto/DBI/
Writing Makefile for DBD::mysql
第二个问题:
输入nmake 遇到的error消息,请问怎么处理?
F:\perl_modules\DBD-mysql-2.9005_3>nmake
mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external symbol __pctyp
e
mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external symbol ___mb_c
ur_max
blib\arch\auto\DBD\mysql\mysql.dll : fatal error LNK1120: 2 unresolved externals |
|