各位大侠,急救安装DBD-mysql-4.011 错误

我 减压后  ,进入目录[root@mail DBD-mysql-4.011]# perl Makefile.PL
执行上面命令报错
perl Makefile.PL
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 find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

PLEASE NOTE:
For 'make test' to run properly, you must ensure that the
database user 'root' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.
mysql> grant all privileges on test.* to [email=]'root'@'localhost'[/email] identified by 's3kr1t';
You can also optionally set the user to run 'make test' with:
perl Makefile.pl --testuser=username
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
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


谢谢大家帮忙解决下

作者: 909048678   发布时间: 2011-07-31

Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
不能找到mysql_config,使用--mysql_config选项指定mysql_config的搜索位置
perl Makefile.PL --help
1.jpg (46.62 KB)
2011-7-31 22:29


--mysql_config=<path>               Specify <path> for mysql_config script
--mysql_config=<path>              指定mysql_config脚本位置
  2 找到mysql_config文件的位置
find / -name mysql_config
2.jpg (5.28 KB)
2011-7-31 22:29

3 perl Makefile.PL --mysql_config=/usr/local/mysql/bin
或者export PATH=$PATH:/usr/local/mysql/bin 应该也可以,把mysql的命令路径加入到PATH变量中

作者: 风舞紫晓   发布时间: 2011-07-31

LZ你按照沙发说的试试看吧

作者: dn833   发布时间: 2011-07-31