in reply to CPAN module strangeness

What happened when you tried to install in properly? Did it pass `make test`?

Since it is pure Perl, you shouldn't have any problem installing it through the Makefile, and you should do that when you can. I'm curious if you'd see the same odd behaviour after doing that.

--
brian d foy <brian@stonehenge.com>

Replies are listed 'Best First'.
Re^2: CPAN module strangeness
by RobertJ (Acolyte) on Apr 05, 2005 at 20:26 UTC
    I used the following while logged into the terminal as root

    perl -MCPAN -e 'install File::Copy::Recursive;'

    I don't remember the exact wording but it said something like

    module package opened - looking good

    starting Makefile.PL

    then there was some type of message saying it couldn't

    it then tried the test with the same results
Re^2: CPAN module strangeness
by RobertJ (Acolyte) on Apr 05, 2005 at 22:04 UTC
    Terminal log

    % perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for File::Copy::Recursive [Robert-Computer:/&Download Stuff/&Sat/File-Copy-Recursive-0.05] rober +t% make mkdir blib mkdir blib/lib mkdir blib/lib/File mkdir blib/lib/File/Copy mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/File mkdir blib/arch/auto/File/Copy mkdir blib/arch/auto/File/Copy/Recursive mkdir blib/lib/auto mkdir blib/lib/auto/File mkdir blib/lib/auto/File/Copy mkdir blib/lib/auto/File/Copy/Recursive mkdir blib/man3 cp Recursive.pm blib/lib/File/Copy/Recursive.pm Manifying blib/man3/File::Copy::Recursive.3 [Robert-Computer:/&Download Stuff/&Sat/File-Copy-Recursive-0.05] rober +t% make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/System/Libra +ry/Perl/darwin -I/System/Library/Perl -e 'use Test::Harness qw(&runte +sts $verbose); $verbose=0; runtests @ARGV;' t/*.t t/1.................Can't locate Test/More.pm in @INC (@INC contains: +blib/arch blib/lib /System/Library/Perl/darwin /System/Library/Perl/d +arwin /System/Library/Perl/darwin /System/Library/Perl /System/Librar +y/Perl/darwin /System/Library/Perl/darwin /System/Library/Perl /Libra +ry/Perl/darwin /Library/Perl/darwin /Library/Perl /Library/Perl/darwi +n /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /N +etwork/Library/Perl . /System/Library/Perl/darwin /System/Library/Per +l /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/P +erl/darwin /Network/Library/Perl /Network/Library/Perl .) at t/1.t li +ne 8.<BR> BEGIN failed--compilation aborted at t/1.t line 8. t/1.................dubious + Test returned status 2 (wstat 512, 0x200) FAILED--1 test script could be run, alas--no output ever seen<BR> make: *** [test_dynamic] Error 2 [Robert-Computer:/&Download Stuff/&Sat/File-Copy-Recursive-0.05] rober +t%

    Edit by BazB: add code tags.

      You don't have Test::More installed because you're using an older version of Perl. Skip the `make test` step when you install modules (or upgrade your perl).

      In the CPAN.pm shell, use a "force install" to let it ignore the test failure.

      Good luck :)

      --
      brian d foy <brian@stonehenge.com>
        The force install worked however

        the installed pm was

        package File::Copy::Recursive; use strict; use warnings; use Carp; use File::Copy; use File::Spec; #not really needed because File::Copy already gets it, + but for good measure :) require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(fcopy rcopy dircopy); our $VERSION = '0.05'; sub VERSION { $VERSION; } our $MaxDepth = 0; our $KeepMode = 1; ..........
        When called from my main perl script I got an error message to the effect that "there was no dircopy() subroutine.

        When I changed the installed pm module to

        package File::Copy::Recursive; use strict; use warnings; use Carp; use File::Copy; use File::Spec; require Exporter; use vars qw(@ISA @EXPORT); @ISA = qw(Exporter); @EXPORT = qw(fcopy rcopy dircopy); our $MaxDepth = 0; our $KeepMode = 1; ............
        It worked perfectly. For now I'm a happy camper (sort of); when I upgrade to 10.3.x I'll check this out.

        BTW - Is upgrading Perl a big deal?