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

Good Monday* Monks and Nuns. Over the weekend I sought to install the Dist::Zilla module and of course its dependencies. Previously I had tried to create a stack of the necessary modules using Pinto (and that's another story)

The message emitted by cpanm looks approximately like this ("approximately" because I tidied it up in vim):


! Installing the dependencies failed:
Module 'Moose' is not installed
Module 'Config::MVP::Assembler' is not installed
Module 'Test::File::ShareDir' is not installed
Module 'MooseX::Types' is not installed
Module 'DateTime' is not installed
Module 'MooseX::Types::Perl' is not installed
Module 'Perl::PrereqScanner' is not installed
Module 'Config::MVP::Assembler::WithBundles' is not installed
Module 'Config::MVP::Reader' is not installed
Module 'Config::MVP' is not installed
Module 'CPAN::Uploader' is not installed
Module 'MooseX::Role::Parameterized' is not installed
Module 'Sub::Exporter::ForMethods' is not installed
Module 'Log::Dispatchouli' is not installed
Module 'namespace::autoclean' is not installed
Module 'Moose::Role' is not installed
Module 'File::Copy::Recursive' is not installed
Module 'MooseX::Types::Moose' is not installed
Module 'App::Cmd::Tester::CaptureExternal' is not installed
Module 'MooseX::LazyRequire' is not installed
Module 'Config::MVP::Reader::INI' is not installed
Module 'Test::Fatal' is not installed
Module 'Config::MVP::Reader::Finder' is not installed
Module 'Moose::Util::TypeConstraints' is not installed
Module 'MooseX::SetOnce' is not installed
Module 'Config::MVP::Reader::Findable::ByExtension' is not installed
Module 'Config::MVP::Section' is not installed
Module 'App::Cmd::Command::version' is not installed
Module 'App::Cmd::Tester' is not installed
Module 'App::Cmd::Setup' is not installed
! Bailing out the installation for Dist-Zilla-6.037.

cpanm was invoked like this:
cpanm -v -L ~/Repositories_Perl/Dist-Zilla --self-contained Dist::Zilla

The system has these characteristics:
{flyboi linux - 6.1.0-42-686 {LMDE 6 (faye)} i686} sys data courtesy this newly-installed CPAN module

Perl is running like this:


  perl-5.42.0
  Built under linux
  Compiled at Aug 11 2025 15:34:31
  %ENV:
    PERL5LIB=""
    PERLBREW_HOME="/home/somian/.perlbrew"
    PERLBREW_MANPATH="/home/somian/perl5/perlbrew/perls/perl-5.42.0/man"
    PERLBREW_PATH="/home/somian/perl5/perlbrew/bin:/home/somian/perl5/perlbrew/perls/perl-5.42.0/bin"
    PERLBREW_PERL="perl-5.42.0"
    PERLBREW_ROOT="/home/somian/perl5/perlbrew"
    PERLBREW_SHELLRC_VERSION="1.02"
    PERLBREW_VERSION="1.02"
    PERL_CPANM_OPT="--verbose --with-recommends --with-suggests --no-man-pages --cascade-search --wget --mirror http://192.168.1.7/mincpan --mirror https://cpan.metacpan.org/"
  @INC:
    /home/somian/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/i686-linux-thread-multi-64int
    /home/somian/perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0
    /home/somian/perl5/perlbrew/perls/perl-5.42.0/lib/5.42.0/i686-linux-thread-multi-64int
    /home/somian/perl5/perlbrew/perls/perl-5.42.0/lib/5.42.0

Feb 09, 2026 at 18:05 UTC
* Monday for many but not all of you

  • Comment on cpanm under PerlBrew instance chokes trying to install all these

Replies are listed 'Best First'.
Re: cpanm under PerlBrew instance chokes trying to install all these
by ikegami (Patriarch) on Feb 09, 2026 at 19:48 UTC

    Please provide the actual error message(s), not the final summary.

    Also, provide the output of

    type -p cpanm
    head -1 "$( type -p cpanm )"
    type -p perl

      Hi ikegami. Thanks for the interest. It's going to be impossible for me to provide the original error messages because I've had to endure a Windows shutdown / restart (the monthly crap) and in the process lost the terminal where the output appeared—I was connected to the linux system over ssh.

      I'll do what I can to reproduce the results I saw, later.

      
      ~$ type -p cpanm
      /usr/local/bin/cpanm
      
      ~$ head -1 "$( type -p cpanm )"
      #!/usr/bin/env perl
      
      ~$ type -p perl
      /usr/local/bin/perl
      

      That's what's happening today on the Linux box in question. I'm having an amnesia-belabored day and hoping that what I was doing several days ago will just come back to me.
          – Soren
      Feb 11, 2026 at 18:36 UTC

      A just machine to make big decisions
      Programmed by fellows (and gals) with compassion and vision
      We'll be clean when their work is done
      We'll be eternally free yes, and eternally young
      Donald Fagen —> I.G.Y.
      (Slightly modified for inclusiveness)

        Just run the command again! (I also think cpanm saves the output to disk.)

        Also, your info is inconsistent. You previously claimed to be using /home/somian/perl5/perlbrew/perls/perl-5.42.0/bin/perl, but you now say you're using /usr/local/bin/perl. Which is it?