Advertisement

Linux 添加 Perl 模块

阅读量:

摘要:在编译postgresql过程中,若需启用Perl TAP测试工具,应添加--enable-tap-tests参数以激活相关测试功能。此时会出现以下提示信息:

需要安装IPC::Run、Test::More以及Time::HiRes等Perl模块。

执行命令:

cpan -i IPC::Run

cpan -i Test::More

cpan -i Time::HiRes

正在检测perl模块IPC::Run... 未找到
正在检测perl模块Test::More 0.87... 未找到
正在检测perl模块Time::HiRes... 未找到
configure: error: 运行TAP测试需要额外的Perl模块支持

1. 使用yum命令安装perl及其开发包:

yum -y install perl perl-devel

2. 以root权限执行以下操作:

#perl -MCPAN -e shell

3. 对CPAN进行重新加载操作。

cpan[4]>reload CPAN

4. 查看所有可用的CPAN模块列表。

cpan[5]>m

5. 开始安装所需模块。

cpan[6]>install Net::SMTP

全部评论 (0)

还没有任何评论哟~