http://qs321.pair.com?node_id=11115277

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

I set up a new instance of a machine on amazon. I installed the Paws perl distribution with cpanm on the new machine. It is pulling version 0.41 even though 0.42 has been out for over a month. How do I determine where cpanm is configured to pull cpan distributions from so I can try to troubleshoot this problem?

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re: How do I determine mirror used by cpanm?
by 1nickt (Canon) on Apr 09, 2020 at 16:35 UTC

    Agree that the indexing is borked at this time. You can always install a distro using the URI directly:

    cpanm https://cpan.metacpan.org/authors/id/J/JL/JLMARTIN/Paws-0.42.tar +.gz --> Working on https://cpan.metacpan.org/authors/id/J/JL/JLMARTIN/Paws +-0.42.tar.gz ...

    Hope this helps!


    The way forward always starts with a minimal test.
Re: How do I determine mirror used by cpanm?
by marto (Cardinal) on Apr 09, 2020 at 14:33 UTC

      Yes, but I don't see how it's possible that cpan.org would serve out an outdated copy of the module. I figured there must be some local configuration that is telling it which mirror to use.

      But I just looked at the build log. It says: Fetching http://www.cpan.org/authors/id/J/JL/JLMARTIN/Paws-0.41.tar.gz So why would cpanm download an older version of this distriubtion? It should be downloading Paws-0.42, shouldn't it?

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
      $nysus = $PM . ' ' . $MCF;
      Click here if you love Perl Monks

        Look at 02packages.details.txt:

        Paws 0.41 J/JL/JLMARTIN/Paws-0.41.tar.g +z Paws::AccessAnalyzer undef J/JL/JLMARTIN/Paws-0.42.tar.g +z

        The clientas show:

        marto@marto-laptop~ $ sudo cpanm --info Paws JLMARTIN/Paws-0.41.tar.gz marto@marto-laptop~ $ sudo cpanm --info Paws::AccessAnalyzer JLMARTIN/Paws-0.42.tar.gz marto@marto-laptop~ $ cpan -D Paws Reading '/home/marto/.local/share/.cpan/Metadata' Database was generated on Thu, 09 Apr 2020 07:55:54 GMT Paws ---------------------------------------------------------------------- +--- (no description) J/JL/JLMARTIN/Paws-0.41.tar.gz (no installation file) Installed: not installed CPAN: 0.41 Not up to date Jose Luis Martinez Torres (JLMARTIN) jlmartinez@cpan.org
        can confirm. Both cpanm --info Paws and cpanplus l Paws indicate that the Version on CPAN is 0.41 …
        probably some missing index file or so.