Can’t locate Test/Parser/Dbt2.pm in @INC问题的解决

 

最近在调研dbt2时,出现这样一个错误,记录一下,方便以后查找

原因是有以下几个perl模块没有安装

Statistics::Descriptive

Test::Parser(dbt2相关的在这个里,其它两个我也不知道为什么需要)

Test::Reporter

这三个模块可以到http://search.cpan.org/下载,(注意下载连接在右上方,害老子找了好久)

再用perl模块安装方法安装一下就好了,以下是其中一种安装方法

解压安装包:
# tar -zxvf Statistics-Descriptive-2.6.tar.gz

进入Makefile.PL所在目录:
# cd Statistics-Descriptive-2.6

生成makefile文件:
# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Statistics::Descriptive

建立模块:
# make
cp Descriptive.pm blib/lib/Statistics/Descriptive.pm
Manifying blib/man3/Statistics::Descriptive.3pm

测试模块:
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
descr....ok                                                                  
All tests successful.
Files=1, Tests=14, 12 wallclock secs (11.37 cusr +  0.16 csys = 11.53 CPU)

安装模块:
# make install
Installing /usr/lib/perl5/site_perl/5.8.0/Statistics/Descriptive.pm
Installing /usr/share/man/man3/Statistics::Descriptive.3pm
Writing /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Statistics/Descriptive/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod

完成。
也可以用使用CPAN模块自动安装,不过下载perl模块安装包太慢了,没有成功。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值