Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

cpan client does not see newest versions of some modules

by szabgab (Priest)
on Dec 15, 2012 at 14:19 UTC ( [id://1008987]=perlquestion: print w/replies, xml ) Need Help??

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

This is really strange. The command line cpan client does not seem to see a new version of a module while the CPAN shell does.
C:\>cpan namespace::autoclean CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Sat, 15 Dec 2012 08:49:58 GMT CPAN: Module::CoreList loaded ok (v2.78) namespace::autoclean is up to date (0.12). C:\>cpan cpan shell -- CPAN exploration and modules installation (v1.9751) Enter 'h' for help. cpan> i /^namespace::au/ Database was generated on Sat, 15 Dec 2012 08:49:58 GMT Bundle namespace::autoclean (BOBTFISH/namespace-autoclean-0.13.ta +r.gz) Module = namespace::autoclean (BOBTFISH/namespace-autoclean-0.13.ta +r.gz) 2 items found cpan> q Lockfile removed. C:\>mversion namespace::autoclean 0.12 C:\>cpan namespace::autoclean CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Sat, 15 Dec 2012 08:49:58 GMT CPAN: Module::CoreList loaded ok (v2.78) namespace::autoclean is up to date (0.12). C:\>cpan --version C:\strawberry\perl\bin/cpan version 1.57 calling Getopt::Std::getopts +(version 1.06 [paranoid]), running under Perl version 5.12.3. [Now continuing due to backward compatibility and excessive paranoia +. See ``perldoc Getopt::Std'' about $Getopt::Std::STANDARD_HELP_VERSI +ON.] Nothing to install!
Strawberry Perl 5.12.3 32bit

The same happened with a number of other modules.

For Template I could install it by running "install Template" inside the CPAN shell, for namespace::autoclean I had to type: "install BOBTFISH/namespace-autoclean-0.13.tar.gz"

Currently this is the set of modules that refuse to upgrad via the cpan script.

Warning: prerequisite Class::C3::Componentised 1.001000 not found. We +have 1.0009. Warning: prerequisite Exporter::Declare 0.105 not found. We have 0.103 +. Warning: prerequisite File::ShareDir::Install 0.04 not found. We have +0.03. Warning: prerequisite HTML::Lint 2.10 not found. Warning: prerequisite HTML::Template 2.9 not found. We have 2.10. Warning: prerequisite IO::TieCombine 1.001 not found. We have 1.000. Warning: prerequisite List::MoreUtils 0.33 not found. We have 0.32. Warning: prerequisite Log::Contextual 0.004001 not found. We have 0.00 +304. Warning: prerequisite Log::Log4perl 1.35 not found. We have 1.33. Warning: prerequisite MIME::Types 1.34 not found. We have 1.31. Warning: prerequisite MetaCPAN::API 0.43 not found. Warning: prerequisite Modern::Perl 1.20120130 not found. We have 1.03. Warning: prerequisite Module::Install::ReadmeFromPod 0.16 not found. Warning: prerequisite Module::Refresh 0.17 not found. We have 0.16. Warning: prerequisite Module::ScanDeps 1.07 not found. We have 1.02. Warning: prerequisite MooseX::Role::Parameterized 1.00 not found. We h +ave 0.26. Warning: prerequisite MooseX::SetOnce 0.200001 not found. We have 0.20 +0000. Warning: prerequisite MooseX::Singleton 0.29 not found. We have 0.27. Warning: prerequisite MooseX::StrictConstructor 0.19 not found. We hav +e 0.16. Warning: prerequisite MooseX::Types::Perl 0.101341 not found. We have +0.101340. Warning: prerequisite POE 1.350 not found. We have 1.311. Warning: prerequisite POE::Test::Loops 1.350 not found. We have 1.312. Warning: prerequisite Package::Stash::XS 0.25 not found. We have 0.22. Warning: prerequisite Params::Validate 1.05 not found. We have 1.00. Warning: prerequisite Pod::Coverage 0.22 not found. We have 0.21. Warning: prerequisite SQL::Translator 0.11010 not found. We have 0.110 +08. Warning: prerequisite Scope::Upper 0.18 not found. We have 0.14. Warning: prerequisite Test::Reporter 1.58 not found. We have 1.57. Warning: prerequisite Test::SharedFork 0.19 not found. We have 0.16. Warning: prerequisite Test::TCP 1.15 not found. We have 1.13. Warning: prerequisite Try::Tiny 0.11 not found. We have 0.09.
Any idea why and how to solve this?

Update

Just to clarify, most of the modules I tried, I could install with the command line cpan client, but not these.

Replies are listed 'Best First'.
Re: cpan client does not see newest versions of some modules
by LanX (Saint) on Dec 15, 2012 at 18:31 UTC
    I'm no cpan client expert, but could it be that you have a conflict of setups/environement?

    (Edit: Maybe pointing to an off-sync mirror or mini-cpan?)

    Can you reproduce the problem on a fresh system/VM?

    Cheers Rolf

Re: cpan client does not see newest versions of some modules
by CountZero (Bishop) on Dec 15, 2012 at 17:50 UTC
    Very strange, it works on my Strawberry Perl 5.12.1

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re: cpan client does not see newest versions of some modules
by Anonymous Monk on Dec 16, 2012 at 00:57 UTC

    Any idea why and how to solve this?

    Check the config, check the mirror, upgrade CPAN::SQLite , cpandb --setup && cpandb --update , disable CPAN::SQLite (  cpan> o conf use_sqlite 0 ), turn on debugging/increase verbosity ( cpan> o debug all or  set CPANSCRIPT_LOGLEVEL=ALL),  cpan> dump namespace::autoclean, ...

    Switch to cpanp/cpanm

Re: cpan client does not see newest versions of some modules
by Khen1950fx (Canon) on Dec 16, 2012 at 19:56 UTC
    For a reliable cpan client, try dual-lived. It has no enviromental or setup problems and will report for the perl that you are using. For example:
    #!/usr/bin/perl use strict; use warnings; system("dual-lived namespace::autoclean -u"); system("dual-lived /^namespace::au/");
    The -u in the first system call will either install or upgrade as necessary. Also, if you'd like a superfast namespace check of the whole "namespace" namespace, do:
    #!/usr/bin/perl use strict; use warnings; system("dual-lived /^namespace/");

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1008987]
Approved by tobyink
Front-paged by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-20 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found