一,安装perl
1、下载5.12.3.tar.gz
2、解压
3、进入解压目录执行
./Configure -des -Dprefix=/usr/local
make
make test
make install
二,安装数据库模块
1、下载DBI
2、进入到解压目录
执行perl Makefile.PL
make
make test
make install
4、进入到解压目录
执行perl Makefile.PL --testuser=zhangyajun --testpassword=****** --testhost=ip --testdb=db --MysqL_config=/usr/local/MysqL/MysqL-5.1.50-linux-x86_64-glibc23/bin/MysqL_config
make
make test
make install 参考 blog.csdn.net/kohaku/article/details/6049183