sinicism 发表于 2005-9-1 14:55:40

DBD::mysql安装出现问题怎么解决

遇到的第一个问题:
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.

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

tacy_lee 发表于 2005-9-17 11:51:32

安装mysql-devel

chd 发表于 2005-10-9 15:43:41

可以试着在网上自动安装

sinicism 发表于 2005-10-13 11:10:19

嘻嘻,bugzilla装好了,还差MTA的配置搞不定,大家再顶一顶,帮帮忙呀。。

网络自动安装被公司firewall挡了,后来找到了安装包才搞定了。
谢谢各位!
页: [1]
查看完整版本: DBD::mysql安装出现问题怎么解决