先安装gcc:
yum -y install gcc
yum -y install gcc-c++
yum install make
安装cpan:
yum -y install cpan
cpan App::cpanminus
安装模块:
perl -MCPAN -e shell //cpan命令行
cpan>h //获得帮助
cpan>m //获取可用的模块
cpan>install DBI //安装DBI 模块