Archive for the ‘Linux’ Category

ssh使用多个私钥

Wednesday, August 18th, 2010

公司代码库的git和几个主机用的密钥不同,在连不同的主机时需要使用不同的密钥,翻了下资料,找到如下的配置方式。

From my .ssh/config:

Host myshortname realname.example.com
Hostname realname.example.com
IdentityFile ~/.ssh/realname_rsa # private key for realname

Host myother realname2.example.org
Hostname realname2.example.org
IdentityFile ~/.ssh/realname2_rsa

系统启动NTLOADER和GRUB

Thursday, September 14th, 2006

我的系统是XP和UBUNTU

启动使用了vfloppy虚拟软盘。

BOOT.INI内容

[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS=”XP” /noexecute=optin /fastdetect
C:\BOOT\BOOTDISK.bin=”vfloppy”
C:\BOOT\grldr=”Grub”

因为XP使用的比较多,没事从虚拟软盘启动GHOST恢复一下就没GRUB了

所以用NTLOADER进GRUB去恢复:

重新启动,进去GRUB命令行

grub> find /boot/grub/menu.lst #得到menu.lst的位置如:hd(0,7)
grub> root (hd0,7)
grub> setup (hd0)
grub> reboot

如果不安装GRUB,仅引导LINUX可使用如下命令实现:

grub> find /boot/vmlinuz
(hd0,7)

grub> root (hd0,7)
grub> kernel /boot/vmlinuz root=/dev/hda8
grub> boot

install gcc for ubuntu linux

Friday, August 25th, 2006

jondy@jondy-desktop:~$ su
Password:
root@jondy-desktop:/home/jondy# apt-get install build-essential
正在读取软件包列表… 完成
正在分析软件包的依赖关系树… 完成
将会安装下列额外的软件包:
binutils cpp cpp-4.0 dpkg-dev g++ g++-4.0 gcc gcc-4.0 libc6-dev
libstdc++6-4.0-dev linux-kernel-headers make
建议安装的软件包:
binutils-doc cpp-doc gcc-4.0-locales debian-keyring gcc-4.0-doc lib64stdc++6
manpages-dev autoconf automake1.9 libtool flex bison gcc-doc libc6-dev-amd64
lib64gcc1 glibc-doc libstdc++6-4.0-doc stl-manual
推荐安装的软件包:
libmudflap0-dev
下列【新】软件包将被安装:
binutils build-essential cpp cpp-4.0 dpkg-dev g++ g++-4.0 gcc gcc-4.0
libc6-dev libstdc++6-4.0-dev linux-kernel-headers make
共升级了 0 个软件包,新安装了 13 个软件包,要卸载 0 个软件包,有 4 个软件未被升 级。
需要下载 12.0MB 的软件包。
解压缩后会消耗掉 47.1MB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://security.ubuntu.com dapper-security/main binutils 2.16.1cvs200601 17-1ubuntu2.1 [1407kB]
获取:2 http://cn.archive.ubuntu.com dapper/main linux-kernel-headers 2.6.11.2-0 ubuntu18 [1039kB]
获取:3 http://cn.archive.ubuntu.com dapper/main libc6-dev 2.3.6-0ubuntu20 [2822 kB]
获取:4 http://cn.archive.ubuntu.com dapper/main cpp-4.0 4.0.3-1ubuntu5 [1987kB]
获取:5 http://cn.archive.ubuntu.com dapper/main cpp 4:4.0.3-1 [31.0kB]
获取:6 http://cn.archive.ubuntu.com dapper/main gcc-4.0 4.0.3-1ubuntu5 [513kB]
获取:7 http://cn.archive.ubuntu.com dapper/main gcc 4:4.0.3-1 [5048B]
获取:8 http://cn.archive.ubuntu.com dapper/main libstdc++6-4.0-dev 4.0.3-1ubunt u5 [1471kB]
获取:9 http://cn.archive.ubuntu.com dapper/main g++-4.0 4.0.3-1ubuntu5 [2271kB]
获取:10 http://cn.archive.ubuntu.com dapper/main g++ 4:4.0.3-1 [1386B]
获取:11 http://cn.archive.ubuntu.com dapper/main make 3.80+3.81.b4-1 [286kB]
获取:12 http://cn.archive.ubuntu.com dapper/main dpkg-dev 1.13.11ubuntu6 [163kB]
获取:13 http://cn.archive.ubuntu.com dapper/main build-essential 11.1 [6826B]
下载 12.0MB,耗时 1m47s (112kB/s)
选中了曾被取消选择的软件包 binutils。
(正在读取数据库 … 系统当前总共安装有 70535 个文件和目录。)
正在解压缩 binutils (从 …/binutils_2.16.1cvs20060117-1ubuntu2.1_i386.deb) …
选中了曾被取消选择的软件包 linux-kernel-headers。
正在解压缩 linux-kernel-headers (从 …/linux-kernel-headers_2.6.11.2-0ubuntu18_i386.deb) …
选中了曾被取消选择的软件包 libc6-dev。
正在解压缩 libc6-dev (从 …/libc6-dev_2.3.6-0ubuntu20_i386.deb) …
选中了曾被取消选择的软件包 cpp-4.0。
正在解压缩 cpp-4.0 (从 …/cpp-4.0_4.0.3-1ubuntu5_i386.deb) …
选中了曾被取消选择的软件包 cpp。
正在解压缩 cpp (从 …/cpp_4%3a4.0.3-1_i386.deb) …
选中了曾被取消选择的软件包 gcc-4.0。
正在解压缩 gcc-4.0 (从 …/gcc-4.0_4.0.3-1ubuntu5_i386.deb) …
选中了曾被取消选择的软件包 gcc。
正在解压缩 gcc (从 …/gcc_4%3a4.0.3-1_i386.deb) …
选中了曾被取消选择的软件包 libstdc++6-4.0-dev。
正在解压缩 libstdc++6-4.0-dev (从 …/libstdc++6-4.0-dev_4.0.3-1ubuntu5_i386.deb) …
选中了曾被取消选择的软件包 g++-4.0。
正在解压缩 g++-4.0 (从 …/g++-4.0_4.0.3-1ubuntu5_i386.deb) …
选中了曾被取消选择的软件包 g++。
正在解压缩 g++ (从 …/g++_4%3a4.0.3-1_i386.deb) …
选中了曾被取消选择的软件包 make。
正在解压缩 make (从 …/make_3.80+3.81.b4-1_i386.deb) …
选中了曾被取消选择的软件包 dpkg-dev。
正在解压缩 dpkg-dev (从 …/dpkg-dev_1.13.11ubuntu6_all.deb) …
选中了曾被取消选择的软件包 build-essential。
正在解压缩 build-essential (从 …/build-essential_11.1_i386.deb) …
正在设置 binutils (2.16.1cvs20060117-1ubuntu2.1) …

正在设置 linux-kernel-headers (2.6.11.2-0ubuntu18) …
正在设置 libc6-dev (2.3.6-0ubuntu20) …
正在设置 cpp-4.0 (4.0.3-1ubuntu5) …
正在设置 cpp (4.0.3-1) …

正在设置 gcc-4.0 (4.0.3-1ubuntu5) …
正在设置 gcc (4.0.3-1) …

正在设置 make (3.80+3.81.b4-1) …

正在设置 dpkg-dev (1.13.11ubuntu6) …
正在设置 g++-4.0 (4.0.3-1ubuntu5) …
正在设置 libstdc++6-4.0-dev (4.0.3-1ubuntu5) …

正在设置 g++ (4.0.3-1) …

正在设置 build-essential (11.1) …
root@jondy-desktop:/home/jondy# gcc
gcc: 没有输入文件
root@jondy-desktop:/home/jondy#

Trubo Linux 10下为Perl安装DBD::Mysql模块

Tuesday, March 22nd, 2005

Trubo Linux 10下为Perl安装DBD::Mysql模块

by jondy(jondy@tom.com)

用到以前写的Windows下的perl连mysql的脚本才发现
没有安DBI模块,在Windows下安装模块用PPM就可以了,很方便
而在linux没有ppm这个文件
linux下使用perl -MCPAN来安装模块,具体用法查看帮助
perl -MCPAN -h
perl -MCPAN 初次使用时提示设置,基本上一路回车到选择区域和国家
设置保存在
/usr/lib/perl5/5.8.0/CPAN/Config.pm
设置可以修改此文件或干脆删除它再运行perl -MCAPN -e shell重新设置
下边开始安装
perl -MCPAN -e shell
首先要安装DBI模块,这个在trubolinux10下没问题,
cpan> install DBI
然后安装DBD::mysql模块
cpan> install DBD::mysql
提示出错退出:
t/mysql2.t         255 65280    ??   ??       %  ??
1 test skipped.
Failed 16/18 test scripts, 11.11% okay. 723/730 subtests failed, 0.96% okay.
make: *** [test_dynamic] 错误 2
/usr/bin/make test — NOT OK
Running make install
make test had returned bad status, won’t install without force
向上找发现
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
cpan> q
退出
[root@localhost sources]#vim /root/.cpan/build/DBD-mysql-2.9004/Makefile.PL
输入/mysql_config查找发现
open(PIPE, “mysql_config –$param |”);
open(PIPE, “/usr/local/mysql/bin/mysql_config –$param |”); #修改此处,
运行
[root@localhost sources]#cd /root/.cpan/build/DBD-mysql-2.9004
[root@localhost sources]#perl Makefile.PL –h
Usage: perl /root/.cpan/build/DBD-mysql-2.9004/Makefile.PL [options]

Possible options are:

–cflags=       Use  for running the C compiler; defaults
to the value of “mysql_config –cflags”
–libs=          Use  for running the linker; defaults
to the value of “mysql_config –libs”
–testdb=          Use the database  for running the test suite;
defaults to test
–testuser=      Use the username  for running the test suite;
defaults to no username
–testpassword=   Use the password  for running the test suite;
defaults to no password
–testhost=      Use  as a database server for running the
test suite; defaults to localhost.
–testport=      Use  as the port number of the database;
by default the port number is choosen from the
mysqlclient library
–nocatchstderr        Supress using the “myld” script that redirects
STDERR while running the linker.
–nofoundrows          Change the behavoiur of $sth->rows() so that it
returns the number of rows physically modified
instead of the rows matched
–ssl                  Enable SSL support
–help                 Print this message and exit

All options may be configured on the command line. If they are
not present on the command line, then mysql_config is called:

mysql_config –cflags
mysql_config –libs
mysql_config –testdb

and so on. See the INSTALL.html file for details.
按提示输入
[root@localhost sources]#perl Makefile.PL –testuser=root –testpassword=password
输入数据库的用户名和密码
这次没有提示错误,然后输入
[root@localhost sources]#make
[root@localhost sources]#make test
[root@localhost sources]#make install
完成安装;

下边是安装时出现错误的完整信息

Running install for module DBD::mysql
Running make for R/RU/RUDY/DBD-mysql-2.9004.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/R/RU/RUDY/DBD-mysql-2.9004.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Deleting from cache: /root/.cpan/build/Msql-Mysql-modules-1.2219 (11.4>10.0 MB)
Deleting from cache: /root/.cpan/build/Data-Dumper-2.121 (10.7>10.0 MB)
Deleting from cache: /root/.cpan/build/Net-Telnet-3.03 (10.2>10.0 MB)
DBD-mysql-2.9004/
DBD-mysql-2.9004/t/
DBD-mysql-2.9004/t/mysql2.t
DBD-mysql-2.9004/t/akmisc.t
DBD-mysql-2.9004/t/60leaks.t
DBD-mysql-2.9004/t/10dsnlist.t
DBD-mysql-2.9004/t/ak-dbd.t
DBD-mysql-2.9004/t/50chopblanks.t
DBD-mysql-2.9004/t/mysql.t
DBD-mysql-2.9004/t/lib.pl
DBD-mysql-2.9004/t/40blobs.t
DBD-mysql-2.9004/t/40nulls.t
DBD-mysql-2.9004/t/insertid.t
DBD-mysql-2.9004/t/40listfields.t
DBD-mysql-2.9004/t/40bindparam.t
DBD-mysql-2.9004/t/mysql.dbtest
DBD-mysql-2.9004/t/dbdadmin.t
DBD-mysql-2.9004/t/20createdrop.t
DBD-mysql-2.9004/t/00base.t
DBD-mysql-2.9004/t/30insertfetch.t
DBD-mysql-2.9004/t/40numrows.t
DBD-mysql-2.9004/t/50commit.t
DBD-mysql-2.9004/t/mysql.mtest
DBD-mysql-2.9004/MANIFEST
DBD-mysql-2.9004/myld
DBD-mysql-2.9004/dbdimp.c
DBD-mysql-2.9004/lib/
DBD-mysql-2.9004/lib/DBD/
DBD-mysql-2.9004/lib/DBD/mysql/
DBD-mysql-2.9004/lib/DBD/mysql/GetInfo.pm
DBD-mysql-2.9004/lib/DBD/mysql/INSTALL.pod
DBD-mysql-2.9004/lib/DBD/mysql.pm
DBD-mysql-2.9004/lib/Mysql/
DBD-mysql-2.9004/lib/Mysql/Statement.pm
DBD-mysql-2.9004/lib/Bundle/
DBD-mysql-2.9004/lib/Bundle/DBD/
DBD-mysql-2.9004/lib/Bundle/DBD/mysql.pm
DBD-mysql-2.9004/lib/Mysql.pm
DBD-mysql-2.9004/dbdimp.h
DBD-mysql-2.9004/mysql.xs
DBD-mysql-2.9004/MANIFEST.SKIP
DBD-mysql-2.9004/README
DBD-mysql-2.9004/INSTALL.html
DBD-mysql-2.9004/META.yml
DBD-mysql-2.9004/Makefile.PL
DBD-mysql-2.9004/ChangeLog
DBD-mysql-2.9004/constants.h
DBD-mysql-2.9004/TODO
Removing previously used /root/.cpan/build/DBD-mysql-2.9004

CPAN.pm: Going to build R/RU/RUDY/DBD-mysql-2.9004.tar.gz

Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can’t exec “mysql_config”: 没有那个文件或目录 at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
I will use the following settings for compiling and testing:

cflags        (guessed) = -I/usr/local/mysql/include
libs          (guessed) = -L/usr/local/mysql/lib -lmysqlclient -lz -lgz
nocatchstderr (default) = 0
nofoundrows   (default) = 0
ssl           (guessed) = 0
testdb        (default) = test
testhost      (default) =
testpassword  (default) =
testuser      (default) =

To change these settings, see ‘perl Makefile.PL –help’ and
‘perldoc INSTALL’.

Checking if your kit is complete…
Looks good
Note (probably harmless): No library found for -lgz
Using DBI 1.47 (for perl 5.008 on i386-linux) installed in /usr/lib/perl5/site_p
erl/5.8.0/i386-linux/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c  -I/usr/lib/perl5/site_perl/5.8.0/i386-linux/auto/DBI/ -I/usr/local/mysql/
include -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64 -O2 -g -march=i586   -DVERSION=\”2.9004\” -DXS_VERSION=\”2.9004\” -fPIC “-I/
usr/lib/perl5/5.8.0/i386-linux/CORE”   dbdimp.c
/usr/bin/perl -p -e “s/~DRIVER~/mysql/g” /usr/lib/perl5/site_perl/5.8.0/i386-lin
ux/auto/DBI//Driver.xst > mysql.xsi
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.
0/ExtUtils/typemap  mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition ‘do’ detected in mysql.xs, line 196
Warning: duplicate function definition ‘rows’ detected in mysql.xs, line 294
cc -c  -I/usr/lib/perl5/site_perl/5.8.0/i386-linux/auto/DBI/ -I/usr/local/mysql/
include -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
=64 -O2 -g -march=i586   -DVERSION=\”2.9004\” -DXS_VERSION=\”2.9004\” -fPIC “-I/
usr/lib/perl5/5.8.0/i386-linux/CORE”   mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH=”/usr/local/mysql/lib:/usr/lib” /usr/bin/perl myld cc  -shared -L/us
r/local/lib dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so   -L/usr/loca
l/mysql/lib -lmysqlclient -lz
chmod 755 blib/arch/auto/DBD/mysql/mysql.so
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3
Manifying blib/man3/Mysql.3
Manifying blib/man3/DBD::mysql::INSTALL.3
Manifying blib/man3/Bundle::DBD::mysql.3
/usr/bin/make  — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e” “test_harness(0,
‘blib/lib’, ‘blib/arch’)” t/*.t
t/00base………..ok
t/10dsnlist……..DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/10dsnlist.t line 45
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/10dsnlist……..dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t/20createdrop…..DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/20createdrop.t line 45
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/20createdrop…..dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/30insertfetch….DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/30insertfetch.t line 48
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/30insertfetch….dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-11
Failed 11/11 tests, 0.00% okay
t/40bindparam……DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/40bindparam.t line 64
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/40bindparam……dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-28
Failed 28/28 tests, 0.00% okay
t/40blobs……….DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/40blobs.t line 68
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/40blobs……….dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-11
Failed 11/11 tests, 0.00% okay
t/40listfields…..DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/40listfields.t line 57
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/40listfields…..dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-18
Failed 18/18 tests, 0.00% okay
t/40nulls……….DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/40nulls.t line 50
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/40nulls……….dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-11
Failed 11/11 tests, 0.00% okay
t/40numrows……..DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/40numrows.t line 59
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/40numrows……..dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-25
Failed 25/25 tests, 0.00% okay
t/50chopblanks…..DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/50chopblanks.t line 57
Cannot connect: Access denied for user ‘root’@'localhost’ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/50chopblanks…..dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-35
Failed 35/35 tests, 0.00% okay
t/50commit………DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/50commit.t line 64
Can’t call method “tables” on an undefined value at t/lib.pl line 216.
t/50commit………dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-30
Failed 30/30 tests, 0.00% okay
t/60leaks……….skipped
all skipped: $ENV{SLOW_TESTS} is not set or Proc::ProcessTable not insta
lled
t/ak-dbd………..DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/ak-dbd.t line 59
t/ak-dbd………..ok 3/90Can’t call method “tables” on an undefined value at t/
lib.pl line 216.
t/ak-dbd………..dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1, 4-90
Failed 88/90 tests, 2.22% okay
t/akmisc………..Mysql connect(‘database=test;host=’,”,…) failed: Access de
nied for user ‘root’@'localhost’ (using password: NO) at t/akmisc.t line 140
t/akmisc………..NOK 1Cannot connect: Access denied for user ‘root’@'localhost
‘ (using password: NO)
It looks as if your server is not up and running.
This test requires a running server.
Please make sure your server is running and retry.
t/akmisc………..dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-351
Failed 351/351 tests, 0.00% okay
t/dbdadmin………DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/dbdadmin.t line 74
t/dbdadmin………NOK 1Cannot connect: Access denied for user ‘root’@'localhost
‘ (using password: NO)
Either your server is not up and running or you have no
permissions for acessing the DSN DBI:mysql:test.
This test requires a running server and write permissions.
Please make sure your server is running and you have
permissions, then retry.
t/dbdadmin………dubious
Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-21
Failed 21/21 tests, 0.00% okay
t/insertid………DBI connect(‘test’,”,…) failed: Access denied for user ‘ro
ot’@'localhost’ (using password: NO) at t/insertid.t line 13
t/insertid………dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-12
Failed 12/12 tests, 0.00% okay
t/mysql…………Mysql connect(‘database=test;host=’,”,…) failed: Access de
nied for user ‘root’@'localhost’ (using password: NO) at t/mysql.t line 55
not ok 1: Access denied for user ‘root’@'localhost’ (using password: NO)
It looks as if your server is not up and running.
This test requires a running server.
Please make sure your server is running and retry.
t/mysql…………FAILED tests 1-68
Failed 68/68 tests, 0.00% okay
t/mysql2………..Mysql connect(‘database=test;host=’,”,…) failed: Access de
nied for user ‘root’@'localhost’ (using password: NO) at t/mysql2.t line 29
Can’t call method “getserverinfo” on an undefined value at t/mysql2.t line 30.
t/mysql2………..dubious
Test returned status 255 (wstat 65280, 0xff00)
Failed Test       Stat Wstat Total Fail  Failed  List of Failed
——————————————————————————-
t/10dsnlist.t       10  2560     9    9 100.00%  1-9
t/20createdrop.t    10  2560     5    5 100.00%  1-5
t/30insertfetch.t   10  2560    11   11 100.00%  1-11
t/40bindparam.t     10  2560    28   28 100.00%  1-28
t/40blobs.t         10  2560    11   11 100.00%  1-11
t/40listfields.t    10  2560    18   18 100.00%  1-18
t/40nulls.t         10  2560    11   11 100.00%  1-11
t/40numrows.t       10  2560    25   25 100.00%  1-25
t/50chopblanks.t    10  2560    35   35 100.00%  1-35
t/50commit.t       255 65280    30   30 100.00%  1-30
t/ak-dbd.t         255 65280    90   88  97.78%  1 4-90
t/akmisc.t          10  2560   351  351 100.00%  1-351
t/dbdadmin.t        10  2560    21   21 100.00%  1-21
t/insertid.t       255 65280    12   12 100.00%  1-12
t/mysql.t                       68   68 100.00%  1-68
t/mysql2.t         255 65280    ??   ??       %  ??
1 test skipped.
Failed 16/18 test scripts, 11.11% okay. 723/730 subtests failed, 0.96% okay.
make: *** [test_dynamic] 错误 2
/usr/bin/make test — NOT OK
Running make install
make test had returned bad status, won’t install without force

cpan> q