LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 796|回复: 2

安装"DBD::mysql" 时出错,求助!!!!!

[复制链接]
发表于 2006-2-19 20:14:52 | 显示全部楼层 |阅读模式
安装"DBD::mysql" 时出错,出错的地方是这样的:

Removing previously used /root/.cpan/build/DBD-mysql-3.0002

  CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-3.0002.tar.gz

Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 76.

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": 没有那个文件或目录 at Makefile.PL line 454.
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
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
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install

清帮我 解释一下是什么意思,并且怎么解决啊???谢谢
发表于 2006-5-18 01:12:31 | 显示全部楼层
shell> PATH=/home/mysql/binPATH; export PATH (mysql的安装路径根据实际情况填写)

cpan> force install DBD::mysql
回复 支持 反对

使用道具 举报

发表于 2006-5-18 09:23:46 | 显示全部楼层
perl-Class-DBI-mysql.noarch              1.00-1.fc5             extras
yum it.

or yum:
mysql-devel.i386                         5.0.18-2.1             core
than build DBI-mysql yourself.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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