root@bt:~/wepbuster-1.0_beta# ./wepbuster
Can't locate File/Slurp.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./wepbuster line 7.
BEGIN failed--compilation aborted at ./wepbuster line 7.
root@bt:~/wepbuster-1.0_beta# cpan
cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.
cpan[1]> install Slurp
CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
Database was generated on Wed, 10 Aug 2011 13:35:51 GMT
Slurp is up to date (0.4).
cpan[2]>
您好,我该如何解决这个小问题?
答案1
首先你不要这么做install File::Slurp
,install Slurp
它们不是一回事。
一般来说,如果您有一个想要安装的 cpan 模块,即使 cpan 认为它是最新的,您也可以cpan[1]>force install File::Slurp
强制再次安装它。