当前位置: 首页 > 工具软件 > DBD-mysql > 使用案例 >

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

蔡修远
2023-12-01

我想在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

 类似资料: