bdd 启动 data processing进程报错 Can't locate LWP.pm in @INC
Can't locate LWP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
安装CPAN的方法 yum -y install perl-CPAN
解决方法:
History of LWP | Introduction to Web Automation | Words of Caution |
1.3. Installing LWP
LWP and the associated modules areavailablein various distributions free from the Comprehensive Perl ArchiveNetwork (CPAN). The main distributionsare listed at the start of Appendix A, "LWP Modules", although thedetails of which modules are in which distributions changeoccasionally.
If you're using ActivePerl forWindows or MacPerlfor Mac OS 9, you already have LWP. If you're onUnix and you don't already have LWP installed,you'll need to install it from CPAN usinginstructions given in the next section.
To test whether you already have LWP installed:
% perl -MLWP -le "print(LWP->VERSION)"
(The second character in -le is a lowercase L, nota digit one.)
If you see:
Can't locate LWP in @INC (@INC contains: ...lots of paths...). BEGIN failed--compilation aborted.
or if you see a version number lower than 5.64, you need to installLWP on your system.
There are two ways to install modules: using the CPAN shell or theold-fashioned manual way.
1.3.1. Installing LWP from the CPAN Shell
The CPAN shell is a command-line environment<