./run-all-tests --user=root --password=123456
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at ./run-all-tests line 37.
BEGIN failed--compilation aborted at ./run-all-tests line 37.
出错原因 没有安装 perl-DBI模块
[root@c60h sql-bench]# yum install perl-DBI perl-DBD-MySQL -y
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.i686 0:4.013-3.el6 set to be updated
---> Package perl-DBI.i686 0:1.609-4.el6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
perl-DBD-MySQL i686 4.013-3.el6 base 134 k
perl-DBI i686 1.609-4.el6 base 705 k
Transaction Summary
====================================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 839 k
Installed size: 2.0 M
Downloading Packages:
(1/2): perl-DBD-MySQL-4.013-3.el6.i686.rpm | 134 kB 00:00
(2/2): perl-DBI-1.609-4.el6.i686.rpm | 705 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------
Total 299 kB/s | 839 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl-DBI-1.609-4.el6.i686 1/2
Installing : perl-DBD-MySQL-4.013-3.el6.i686 2/2
Installed:
perl-DBD-MySQL.i686 0:4.013-3.el6 perl-DBI.i686 0:1.609-4.el6
Complete!