欢迎来到 Android人的问与答 ,在这里提问或帮助他人解答。 Question2Answer的1.6.x和1.7.x版本的中文翻译包我修改更新:

Question2answer

如何使用中文语言包

Q2A 1.6.x - Chinese Simplified (简体中文)

Q2A 1.7.x - Chinese Simplified (简体中文)


国内服务器推荐 阿里云服务器
国外服务器推荐 DigitalOcean
VPN推荐 正版Green VPN
阿里云推荐码:ldvq50

Can't locate File/Copy/Recursive.pm in @INC (@INC contains:

0 喜欢 0 不喜欢
777 浏览

今天运行perl脚本的时候,发现一个找不到“Recursive.pm”的错误:

Can't locate File/Copy/Recursive.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.12.4/darwin-thread-multi-2level

 

 

BEGIN failed--compilation aborted at xxxx.pl line 6.

 

解决的方法是安装缺少的Recursive.pm,敲入下面的命令:

 

 

android:antt lee$ perl -MCPAN -e install "install File::Copy::Recursive"

 

或者

 

android:antt lee$ sudo cpan install File::Copy::Recursive

Password:

Going to read '/Users/lee/.cpan/Metadata'

  Database was generated on Tue, 23 Sep 2014 22:29:02 GMT

Running install for module 'File::Copy::Recursive'

Running make for D/DM/DMUEY/File-Copy-Recursive-0.38.tar.gz

Checksum for /Users/lee/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.38.tar.gz ok

 

  CPAN.pm: Going to build D/DM/DMUEY/File-Copy-Recursive-0.38.tar.gz

 

Checking if your kit is complete...

Looks good

Writing Makefile for File::Copy::Recursive

cp Recursive.pm blib/lib/File/Copy/Recursive.pm

Manifying blib/man3/File::Copy::Recursive.3pm

  DMUEY/File-Copy-Recursive-0.38.tar.gz

  /usr/bin/make -- OK

'YAML' not installed, will not store persistent state

Running make test

PERL_DL_NONLAZY=1 /opt/local/bin/perl5.12 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

t/1.t .. ok   

All tests successful.

Files=1, Tests=1,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.03 cusr  0.00 csys =  0.06 CPU)

Result: PASS

  DMUEY/File-Copy-Recursive-0.38.tar.gz

  /usr/bin/make test -- OK

Running make install

Installing /opt/local/lib/perl5/site_perl/5.12.4/File/Copy/Recursive.pm

Installing /opt/local/share/perl5.12/siteman/man3/File::Copy::Recursive.3pm

Appending installation info to /opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/perllocal.pod

  DMUEY/File-Copy-Recursive-0.38.tar.gz

  /usr/bin/make install  -- OK

最新提问 1月 18, 2015 分类:Perl | 用户: forlong401 (7,050 分)

登录 或者 注册 后回答这个问题。

...