简体   繁体   中英

Why can't I install Perl's File::Find::Rule?

perl -MCPAN -e'install File::Find::Rule'
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Mon, 13 Sep 2010 08:41:13 GMT
Running install for module File::Find::Rule
Running make for R/RC/RCLAMP/File-Find-Rule-0.32.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/R/RC/RCLAMP/File-Find-Rule-0.32.tar.gz ok
File-Find-Rule-0.32/
File-Find-Rule-0.32/Changes
File-Find-Rule-0.32/findrule
File-Find-Rule-0.32/lib/
File-Find-Rule-0.32/lib/File/
File-Find-Rule-0.32/lib/File/Find/
File-Find-Rule-0.32/lib/File/Find/Rule/
File-Find-Rule-0.32/lib/File/Find/Rule/Extending.pod
File-Find-Rule-0.32/lib/File/Find/Rule/Procedural.pod
File-Find-Rule-0.32/lib/File/Find/Rule.pm
File-Find-Rule-0.32/Makefile.PL
File-Find-Rule-0.32/MANIFEST
File-Find-Rule-0.32/META.yml
File-Find-Rule-0.32/README
File-Find-Rule-0.32/t/
File-Find-Rule-0.32/t/File-Find-Rule.t
File-Find-Rule-0.32/t/findrule.t
File-Find-Rule-0.32/testdir/
File-Find-Rule-0.32/testdir/File-Find-Rule.t
File-Find-Rule-0.32/testdir/findrule.t
File-Find-Rule-0.32/testdir/foobar
File-Find-Rule-0.32/testdir/lib/
File-Find-Rule-0.32/testdir/lib/File/
File-Find-Rule-0.32/testdir/lib/File/Find/
File-Find-Rule-0.32/testdir/lib/File/Find/Rule/
File-Find-Rule-0.32/testdir/lib/File/Find/Rule/Test/
File-Find-Rule-0.32/testdir/lib/File/Find/Rule/Test/ATeam.pm
Removing previously used /root/.cpan/build/File-Find-Rule-0.32

  CPAN.pm: Going to build R/RC/RCLAMP/File-Find-Rule-0.32.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Number::Compare 0 not found.
Warning: prerequisite Text::Glob 0.07 not found.
Writing Makefile for File::Find::Rule
---- Unsatisfied dependencies detected during [R/RC/RCLAMP/File-Find-Rule-0.32.tar.gz] -----
    Number::Compare
    Text::Glob
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] yes
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module Number::Compare
Running make for R/RC/RCLAMP/Number-Compare-0.01.tar.gz
Checksum for /root/.cpan/sources/authors/id/R/RC/RCLAMP/Number-Compare-0.01.tar.gz ok
Number-Compare-0.01/
Number-Compare-0.01/MANIFEST
Number-Compare-0.01/t/
Number-Compare-0.01/t/Number-Compare.t
Number-Compare-0.01/MANIFEST.SKIP
Number-Compare-0.01/Compare.pm
Number-Compare-0.01/Changes
Number-Compare-0.01/Makefile.PL
Removing previously used /root/.cpan/build/Number-Compare-0.01

  CPAN.pm: Going to build R/RC/RCLAMP/Number-Compare-0.01.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Number::Compare
     -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Running install for module Text::Glob
Running make for R/RC/RCLAMP/Text-Glob-0.08.tar.gz
Checksum for /root/.cpan/sources/authors/id/R/RC/RCLAMP/Text-Glob-0.08.tar.gz ok
Text-Glob-0.08/
Text-Glob-0.08/META.yml
Text-Glob-0.08/Changes
Text-Glob-0.08/MANIFEST
Text-Glob-0.08/t/
Text-Glob-0.08/t/Text-Glob.t
Text-Glob-0.08/lib/
Text-Glob-0.08/lib/Text/
Text-Glob-0.08/lib/Text/Glob.pm
Text-Glob-0.08/README
Text-Glob-0.08/Makefile.PL
Text-Glob-0.08/Build.PL
Removing previously used /root/.cpan/build/Text-Glob-0.08

  CPAN.pm: Going to build R/RC/RCLAMP/Text-Glob-0.08.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Text::Glob
     -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Running make for R/RC/RCLAMP/File-Find-Rule-0.32.tar.gz
  Is already unwrapped into directory /root/.cpan/build/File-Find-Rule-0.32

  CPAN.pm: Going to build R/RC/RCLAMP/File-Find-Rule-0.32.tar.gz

     -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

How can i make this?

Thanks

Only install:

apt-get install libfile-find-rule-perl

And it works!!

It looks like Number::Compare and Text::Glob failed to install. Download Number::Compare and build it manually to see what the problem is. Do the same for Text::Glob .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM