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

How do I determine mirror used by cpanm?

by nysus (Vicar)
on Apr 09, 2020 at 14:25 UTC ( #11115277=perlquestion: print w/replies, xml ) Need Help??

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

  • Comment on How do I determine mirror used by cpanm?

Replies are listed 'Best First'.
Re: How do I determine mirror used by cpanm?
by 1nickt (Abbot) 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 (Archbishop) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11115277]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2020-06-01 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (4 votes). Check out past polls.

    Notices?