mysql 4.0.18_DBD:MySQL-4.018的安装问题

在尝试安装Linux RedHat Enterprise 5系统上的Codestriker时,遇到DBD::MySQL-4.018模块安装失败的错误。错误提示表明找不到'mysql_config'文件,尽管已安装了MySQL-server-5.5.8和MySQL-client。手动和使用CPAN安装都未能解决问题。解决此问题需要确保'mysql_config'在PATH中可用,或者通过指定其位置来完成DBD::mysql的安装。
摘要由CSDN通过智能技术生成

我想在linux下装个codestriker

系统:RedHat Enterprise 5 ,装的MySQL为:MySQL-server-5.5.8-1.rhel5.i386.rpm和MySQL-client-5.5.8-1.rhel5.i386.rpm

直接RPM安装的,装完之后修改权限之后可以启动。

之后我就安装说明文档安装,提示需要DBD:MySQL-4.018,我就直接./install(后来用这个命令:perl -MCPAN -e 'install "DBD:mysql"'一样错),但是运行出错,代码如下:

[root@localhost bin]# ./install.pl

Checking for LWP::UserAgent (any) ok: found v5.835

Checking for CGI (v2.56) ok: found v3.15

Checking for Net::SMTP (any) ok: found v2.29

Checking for MIME::QuotedPrint (v2.14) ok: found v3.07

Checking for DBI (v1.13) ok: found v1.615

Checking for Template (v2.07) ok: found v2.22

Checking for HTML::Entities (any) ok: found v3.68

Checking for File::Temp (any) ok: found v0.16

Checking for XML::RSS (v1.05) ok: not found, optional

Checking for Encode::Byte (any) ok: found v2.00

Checking for Encode::Unicode (any) ok: found v2.02

Checking for DBD::mysql (any) not found

Codestriker requires some Perl modules which are either missing

from your system, or the version on your system is too old.

They can be installed by running (as root) the following:

perl -MCPAN -e 'install "DBD::mysql"'

Modules can also be downloaded from http://www.cpan.org.

Shall I try to download and install these modules for you? (y/n): y

Going to read /var/www/codestriker/codestriker-1.9.10/y/Metadata

Database was generated on Sat, 25 Dec 2010 06:54:49 GMT

Running install for module DBD::mysql

Running make for C/CA/CAPTTOFU/DBD-mysql-4.018.tar.gz

CPAN: Digest::MD5 loaded ok

CPAN: Compress::Zlib loaded ok

Checksum for /var/www/codestriker/codestriker-1.9.10/y/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.018.tar.gz ok

Scanning cache /var/www/codestriker/codestriker-1.9.10/y/build for sizes

Deleting from cache: /var/www/codestriker/codestriker-1.9.10/y/build/DBD-mysql-4.018 (10.4>10.0 MB)

DBD-mysql-4.018/

DBD-mysql-4.018/ChangeLog

DBD-mysql-4.018/constants.h

DBD-mysql-4.018/dbdimp.c

DBD-mysql-4.018/dbdimp.h

DBD-mysql-4.018/eg/

DBD-mysql-4.018/eg/bug14979.pl

DBD-mysql-4.018/eg/bug21028.pl

DBD-mysql-4.018/eg/bug30033.pl

DBD-mysql-4.018/eg/bug30033pg.pl

DBD-mysql-4.018/eg/decimal_test.pl

DBD-mysql-4.018/eg/issue21946.pl

DBD-mysql-4.018/eg/prepare_memory_usage.pl

DBD-mysql-4.018/eg/proc_example1.pl

DBD-mysql-4.018/eg/proc_example2.pl

DBD-mysql-4.018/eg/proc_example2a.pl

DBD-mysql-4.018/eg/proc_example2b.pl

DBD-mysql-4.018/eg/proc_example3.pl

DBD-mysql-4.018/eg/proc_example4.pl

DBD-mysql-4.018/INSTALL.html

DBD-mysql-4.018/lib/

DBD-mysql-4.018/lib/Bundle/

DBD-mysql-4.018/lib/Bundle/DBD/

DBD-mysql-4.018/lib/Bundle/DBD/mysql.pm

DBD-mysql-4.018/lib/DBD/

DBD-mysql-4.018/lib/DBD/mysql/

DBD-mysql-4.018/lib/DBD/mysql/GetInfo.pm

DBD-mysql-4.018/lib/DBD/mysql/INSTALL.pod

DBD-mysql-4.018/lib/DBD/mysql.pm

DBD-mysql-4.018/Makefile.PL

DBD-mysql-4.018/Makefile.PL.embedded

DBD-mysql-4.018/MANIFEST

DBD-mysql-4.018/MANIFEST.SKIP

DBD-mysql-4.018/META.yml

DBD-mysql-4.018/myld

DBD-mysql-4.018/mysql.xs

DBD-mysql-4.018/README

DBD-mysql-4.018/t/

DBD-mysql-4.018/t/00base.t

DBD-mysql-4.018/t/10connect.t

DBD-mysql-4.018/t/20createdrop.t

DBD-mysql-4.018/t/25lockunlock.t

DBD-mysql-4.018/t/29warnings.t

DBD-mysql-4.018/t/30insertfetch.t

DBD-mysql-4.018/t/31insertid.t

DBD-mysql-4.018/t/32insert_error.t

DBD-mysql-4.018/t/35limit.t

DBD-mysql-4.018/t/35prepare.t

DBD-mysql-4.018/t/40bindparam.t

DBD-mysql-4.018/t/40bindparam2.t

DBD-mysql-4.018/t/40blobs.t

DBD-mysql-4.018/t/40catalog.t

DBD-mysql-4.018/t/40keyinfo.t

DBD-mysql-4.018/t/40listfields.t

DBD-mysql-4.018/t/40nulls.t

DBD-mysql-4.018/t/40nulls_prepare.t

DBD-mysql-4.018/t/40numrows.t

DBD-mysql-4.018/t/40server_prepare.t

DBD-mysql-4.018/t/40server_prepare_error.t

DBD-mysql-4.018/t/40types.t

DBD-mysql-4.018/t/41bindparam.t

DBD-mysql-4.018/t/41blobs_prepare.t

DBD-mysql-4.018/t/42bindparam.t

DBD-mysql-4.018/t/50chopblanks.t

DBD-mysql-4.018/t/50commit.t

DBD-mysql-4.018/t/51bind_type_guessing.t

DBD-mysql-4.018/t/52comment.t

DBD-mysql-4.018/t/53comment.t

DBD-mysql-4.018/t/55utf8.t

DBD-mysql-4.018/t/60leaks.t

DBD-mysql-4.018/t/65types.t

DBD-mysql-4.018/t/70takeimp.t

DBD-mysql-4.018/t/71impdata.t

DBD-mysql-4.018/t/75supported_sql.t

DBD-mysql-4.018/t/76multi_statement.t

DBD-mysql-4.018/t/80procs.t

DBD-mysql-4.018/t/85init_command.t

DBD-mysql-4.018/t/86_bug_36972.t

DBD-mysql-4.018/t/lib.pl

DBD-mysql-4.018/t/mem_leak.pl

DBD-mysql-4.018/t/mysql.dbtest

DBD-mysql-4.018/t/mysql.mtest

DBD-mysql-4.018/TODO

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

Can't exec "mysql_config": No such file or directory at Makefile.PL line 82.

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": No such file or directory at Makefile.PL line 464.

Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.

Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.

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 'root'@'localhost' 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": No such file or directory at Makefile.PL line 464.

Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.

Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located

Can't exec "mysql_config": No such file or directory at Makefile.PL line 464.

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

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

Failed to install module: DBD::mysql.

Try to install this module manually, and run this script again.

我试着手动下载安装,也是报相同的错误,纠结了一星期,一直没有找出来原因,希望高手能帮帮忙。

作者: wulien88

发布时间: 2010-12-25

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值