Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

When CPAN install fails, but the model is installed anyway

by BeneSphinx (Sexton)
on Oct 05, 2017 at 15:36 UTC ( #1200738=perlquestion: print w/replies, xml ) Need Help??
BeneSphinx has asked for the wisdom of the Perl Monks concerning the following question:

I think this may have happened to me before, but I'm not really sure what to do. I was installing Carp::Always and got the below failure messages. I was using Git Bash instead of the normal Windows cmd line (I am using Strawberry Perl on Windows 7). Then I opened the Windows cmd line and ran CPAN again, and "install Carp::Always" again, and it told me it was already up-to-date. What are the chances that I have some sort of corrupted installation now / what should I do?

Last X lines of the install, it was really long. Basically it detected a bunch of other dependencies and started installing them as well, but then this happened:

...
Writing Makefile for Test::Deep
Writing MYMETA.yml and MYMETA.json
  RJBS/Test-Deep-1.127.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for R/RJ/RJBS/Test-Deep-1.127.tar.gz
sh: C:Strawberrycbingmake.EXE: command not found
  RJBS/Test-Deep-1.127.tar.gz
  C:\Strawberry\c\bin\gmake.EXE -- NOT OK
Running install for module 'Test::Deep'
  RJBS/Test-Deep-1.127.tar.gz
  Has already been unwrapped into directory C:/Users/sdewey/.cpan/build/Test-Deep-1.127-6igTPy
  RJBS/Test-Deep-1.127.tar.gz
  Has already been prepared
  RJBS/Test-Deep-1.127.tar.gz
  Could not make: Unknown error

  FERREIRA/Carp-Always-0.13.tar.gz
  Has already been unwrapped into directory C:/Users/sdewey/.cpan/build/Carp-Always-0.13-6c4ww7
  FERREIRA/Carp-Always-0.13.tar.gz
  Has already been prepared
Running make for F/FE/FERREIRA/Carp-Always-0.13.tar.gz
Warning: Prerequisite 'Test::Base => 0' for 'FERREIRA/Carp-Always-0.13.tar.gz' failed when processing 'INGY/Test-Base-0.88.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
sh: C:Strawberrycbingmake.EXE: command not found
  FERREIRA/Carp-Always-0.13.tar.gz
  C:\Strawberry\c\bin\gmake.EXE -- NOT OK
Failed during this command:
 TYEMQ/Algorithm-Diff-1.1903.tar.gz           : make NO
 NEILB/Text-Diff-1.45.tar.gz                  : make NO
 INGY/Spiffy-0.46.tar.gz                      : make NO
 INGY/Test-Base-0.88.tar.gz                   : make NO
 (optional) RJBS/Test-Deep-1.127.tar.gz       : make NO
 FERREIRA/Carp-Always-0.13.tar.gz             : make NO

But now...

cpan1> install Carp::Always
Reading 'C:\Users\sdewey\.cpan\Metadata'
  Database was generated on Wed, 04 Oct 2017 05:17:02 GMT
Carp::Always is up to date (0.13).

  • Comment on When CPAN install fails, but the model is installed anyway

Replies are listed 'Best First'.
Re: When CPAN install fails, but the model is installed anyway
by marto (Bishop) on Oct 05, 2017 at 15:51 UTC
    sh: C:Strawberrycbingmake.EXE: command not found

    I don't use git bash, and almost never use windows any more, but I wouldn't expect git bash to be successful here. Stick to the one shell. I'd also recommend using cpanm over cpan, considerably faster. Open a fresh command prompt and do this:

    cpanm --reinstall Carp::Always

    Just to make sure everything gets installed as expected.

      Thanks, it succeeded.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1200738]
Approved by Corion
Front-paged by Eily
help
Chatterbox?
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-10-17 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (218 votes). Check out past polls.

    Notices?