Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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
  /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
  C:\Strawberry\c\bin\gmake.EXE -- NOT OK
Running install for module 'Test::Deep'
  Has already been unwrapped into directory C:/Users/sdewey/.cpan/build/Test-Deep-1.127-6igTPy
  Has already been prepared
  Could not make: Unknown error

  Has already been unwrapped into directory C:/Users/sdewey/.cpan/build/Carp-Always-0.13-6c4ww7
  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
  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 (Archbishop) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1200738]
Approved by Corion
Front-paged by Eily
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-07-20 14:48 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (435 votes). Check out past polls.