51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3988|回复: 3

[原创] DBD::mysql安装出现问题怎么解决

[复制链接]

该用户从未签到

发表于 2005-9-1 14:55:40 | 显示全部楼层 |阅读模式
遇到的第一个问题:
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
回复

使用道具 举报

该用户从未签到

发表于 2005-9-17 11:51:32 | 显示全部楼层
安装mysql-devel
回复 支持 反对

使用道具 举报

该用户从未签到

发表于 2005-10-9 15:43:41 | 显示全部楼层
可以试着在网上自动安装
回复 支持 反对

使用道具 举报

该用户从未签到

 楼主| 发表于 2005-10-13 11:10:19 | 显示全部楼层

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

网络自动安装被公司firewall挡了,后来找到了安装包才搞定了。
谢谢各位!
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-3-29 03:28 , Processed in 0.070753 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表