Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Failing to Install File::Copy::Recursive

by sannag (Sexton)
on Jan 29, 2018 at 18:49 UTC ( [id://1208054]=perlquestion: print w/replies, xml ) Need Help??

sannag has asked for the wisdom of the Perl Monks concerning the following question:

I have been trying to install File::Copy::Recursive (actually trying to install DateTime module but it complains about not having File::Copy::Recursive) I am getting following errors. Any idea what is going on? Thank you in advance for your wisdom
cpan[2]> install File::Copy::Recursive Running install for module 'File::Copy::Recursive' Running make for D/DM/DMUEY/File-Copy-Recursive-0.40.tar.gz Has already been unwrapped into directory /root/.cpan/build/File-Cop +y-Recursive-0.40-3I5LE2 Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load.t ............... ok t/01.legacy.t ............. 1/? # File [/tmp/WJpFZ9GZMb/what/what] mod +e is not 0751! # Failed test 'DirPerms in pathmk() effects initial new dir' # at t/01.legacy.t line 208. # File [/tmp/WJpFZ9GZMb/what/what/what] mode is not 0751! # Failed test 'DirPerms in pathmk() effects subsequent new dir' # at t/01.legacy.t line 209. # File [/tmp/WJpFZ9GZMb/new] mode is not 0751! # Failed test 'DirPerms in dircopy() effects dir (new)' # at t/01.legacy.t line 215. # File [/tmp/WJpFZ9GZMb/new/foo] mode is not 0751! # Failed test 'DirPerms in dircopy() effects dir (new/foo)' # at t/01.legacy.t line 215. # File [/tmp/WJpFZ9GZMb/new/foo/bar] mode is not 0751! # Failed test 'DirPerms in dircopy() effects dir (new/foo/bar)' # at t/01.legacy.t line 215. # File [/tmp/WJpFZ9GZMb/new/foo/baz] mode is not 0751! # Failed test 'DirPerms in dircopy() effects dir (new/foo/baz)' # at t/01.legacy.t line 215. # File [/tmp/WJpFZ9GZMb/new/foo/bar/wop] mode is not 0751! # Failed test 'DirPerms in dircopy() effects dir (new/foo/bar/wop)' # at t/01.legacy.t line 215. t/01.legacy.t ............. 95/? # Looks like you failed 7 tests of 10 +9. t/01.legacy.t ............. Dubious, test returned 7 (wstat 1792, 0x70 +0) Failed 7/109 subtests t/02.legacy-symtogsafe.t .. ok t/03.github-issue-5.t ..... ok t/04.readonly-dir.t ....... ok Test Summary Report ------------------- t/01.legacy.t (Wstat: 1792 Tests: 109 Failed: 7) Failed tests: 67-73 Non-zero exit status: 7 Files=5, Tests=150, 1 wallclock secs ( 0.08 usr 0.01 sys + 0.95 cus +r 0.52 csys = 1.56 CPU) Result: FAIL Failed 1/5 test programs. 7/150 subtests failed. make: *** [test_dynamic] Error 255 DMUEY/File-Copy-Recursive-0.40.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DMUEY/File-Copy-Recursive-0.40.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: DMUEY/File-Copy-Recursive-0.40.tar.gz : make_test NO

Replies are listed 'Best First'.
Re: Failing to Install File::Copy::Recursive
by toolic (Bishop) on Jan 29, 2018 at 19:10 UTC
    File::Copy::Recursive, version 0.40, was uploaded almost 2 weeks ago, but there seem to be no CPAN tester results available for this version. That is mysterious and probably indicates a bigger problem. Also, there have been 2 bug reports filed against this version.

    Perhaps you can try installing the pervious version (0.39). There are CPAN Tester results for that, but be aware that there are many failing tests on some OS's.

      Thank you!. I tried to install first 0.39 and then 0.38 get error saying they are not available. Kind of in a fix on what to do about it since I need the module for DateTime
      cpan DMUEY/File-Copy-Recursive-0.39.tar.gz Reading '/root/.cpan/Metadata' Database was generated on Mon, 29 Jan 2018 11:17:02 GMT Running make for D/DM/DMUEY/File-Copy-Recursive-0.39.tar.gz Fetching with HTTP::Tiny: http://mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recurs +ive-0.39.tar.gz HTTP::Tiny failed with code[404] message[Not Found] Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy- +Recursive-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. Fetching with HTTP::Tiny: http://mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recursiv +e-0.39.tar.gz HTTP::Tiny failed with code[404] message[Not Found] Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recu +rsive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http://m +irrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39. +tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recur +sive-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. Fetching with HTTP::Tiny: http://cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39 +.tar.gz HTTP::Tiny failed with code[404] message[Not Found] Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursiv +e-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy- +Recursive-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recu +rsive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recursive-0. +39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39 .tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursiv +e-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. No external ftp command available Fetching with HTTP::Tiny: http://mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recurs +ive-0.39.tar.gz HTTP::Tiny failed with code[404] message[Not Found] Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy- +Recursive-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. Fetching with HTTP::Tiny: http://mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recursiv +e-0.39.tar.gz HTTP::Tiny failed with code[404] message[Not Found] Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recu +rsive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recursive-0. +39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39 .tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. Fetching with HTTP::Tiny: http://cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39 +.tar.gz HTTP::Tiny failed with code[404] message[Not Found] Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursiv +e-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirror.datapipe.net/CPAN/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy- +Recursive-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recu +rsive-0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//mirrors.sonic.net/cpan/authors/id/D/DM/DMUEY/File-Copy-Recursive-0. +39.tar.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Re +cursive-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Trying with /usr/bin/curl -L -f -s -S --netrc-optional to get http://cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive- +0.39.tar.gz curl: (22) The requested URL returned error: 404 Not Found Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http: +//cpan.llarian.net/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz" > "/root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursiv +e-0.39.tar.gz.tmp9921"") returned status 22 (wstat 5632), left /root/.cpan/sources/authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar +.gz.tmp9921 with size 0 Warning: no success downloading '/root/.cpan/sources/authors/id/D/ +DM/DMUEY/File-Copy-Recursive-0.39.tar.gz.tmp9921'. Giving up on it. No external ftp command available Please check, if the URLs I found in your configuration file (http://mirror.datapipe.net/CPAN/, http://mirrors.sonic.net/cpan/, http://cpan.llarian.net/) are valid. The urllist can be edited. E.g. w +ith 'o conf urllist push ftp://myurl/' Could not fetch authors/id/D/DM/DMUEY/File-Copy-Recursive-0.39.tar.gz

        Unfortunately all the older versions have been relegated to BackPAN. You can however retrieve it directly from (eg) here.

Re: Failing to Install File::Copy::Recursive
by karlgoethebier (Abbot) on Jan 30, 2018 at 12:41 UTC
    "...what is going on..."

    No idea. But i just (2h ago or so) had success with v5.24.1 for DateTime-1.45 and File::Copy::Recursive 0.40 with cpanm DateTime on my Mac.

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

      hmm interesting I tried again and it failed to install File::Copy::Recursive with same errors. The error are same as mentioned on bug report. I am installing on RHEL 7.2. I wonder if this OS specific. Either way it is frustrating.
        I wonder if this OS specific

        It's the same failures for me on Windows 7 for perls 5.16.0, 5.27.6 and 5.27.8 - and probably all perl versions in between, though that is untested.

        CORRECTION: Whilst it's the same test file that's failing, the actual failure is quite different on Windows:
        > perl -Mblib t/01.legacy.t # functionality w/ default globals ok 1 - DirPerms default is 0777 ok 2 - CPRFComp default is false ok 3 - RMTrgFil default is false not ok 4 - dircopy() defaults as expected when target does not exist # Failed test 'dircopy() defaults as expected when target does not e +xist' # at t/01.legacy.t line 331. # Structures begin differing at: # $got->{C:/Users/sisyphus/AppData/Local/Temp/tNBiHmA0Z3/orig +/data} = Does not exist # $expected->{C:/Users/sisyphus/AppData/Local/Temp/tNBiHmA0Z3/orig +/data} = 'file' Error open (<) on 'C:/Users/sisyphus/AppData/Local/Temp/tNBiHmA0Z3/new +/C:/Users/sisyphus/AppData/Local/Temp/tNBiHmA0Z3/new/data': Invalid a +rgument at t/01.legacy.t line 338. # Tests were run but no plan was declared and done_testing() was not s +een. # Looks like your test exited with 22 just after 4.

        Perhaps it's "OS specific" in that it works only on some versions of MacOS ;-)

        But the best thing you can do is (as already suggested) to download either version 0.38 or version 0.39, unpack the tar.gz, 'cd' to the top-level folder, and run (in sequence) 'perl Makefile.PL', 'make test' and 'make install'.

        I suggest grabbing 0.38 as I know that 0.38 works fine for me. I haven't tried 0.39.

        The second best thing you can do is to just force installation of the module ( cpan -fi File::Copy::Recursive). For all we know it might just be a bug in the new, more extensive, 0.40 test suite. The 0.38 test suite tested only that the module was loadable.
        I doubt that the DateTime module really has any use for File::Copy::Recursive, so even if there are bugs in File-Copy-Recursive-0.40 functionality, I would think they are unlikely to affect the workings of DateTime.
        And File::Copy::Recursive can always be overridden with a newer version if need be.

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1208054]
Approved by toolic
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 06:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found