Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Cpan reload index failed

by Anonymous Monk
on May 19, 2014 at 08:54 UTC ( [id://1086618]=perlquestion: print w/replies, xml ) Need Help??

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

I have problems with working with CPAN. I have been googling all morning with no results. Sorry, if someone already asked this, but I could't really find solutions for my problem. I have Strawberry Perl (v5.18.2) on Windows. When I try to get some module or reload the index i get this?
cpan> reload index Fetching with LWP: http://mirrors.nic.cz/authors/01mailrc.txt.gz Fetching with LWP: http://mirrors.nic.cz/modules/02packages.details.txt.gz Fetching with LWP: http://mirrors.nic.cz/modules/03modlist.data.gz Creating database file ... Indexing failed! at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line +71, <TYPE> line 353. CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/SQLite +/META.pm l ine 352, <TYPE> line 353. Catching error: "system C:\\strawberry\\perl\\bin\\perl.exe -MCPAN::SQ +Lite::META =setup,update,check -e setup failed: 2304 at C:\\strawberry\\perl\\ven +dor\\lib/C PAN/SQLite/META.pm line 345.\cJ" at C:/strawberry/perl/lib/CPAN.pm lin +e 392. CPAN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm lin +e 338 App::Cpan::_process_options("App::Cpan") called at C:/strawber +ry/perl/li b/App/Cpan.pm line 421 App::Cpan::run("App::Cpan") called at C:\strawberry\perl\bin/c +pan.bat li ne 25

Replies are listed 'Best First'.
Re: Cpan reload index failed
by marto (Cardinal) on May 19, 2014 at 09:24 UTC

    Firstly the URLs for the mirror you're using are wrong, http://www.cpan.org/SITES.html states http:// or ftp://mirrors.nic.cz/CPAN/. Pulling back files from here is fine. Perhaps the SQLite DB is corrupt in some way. I suggest you exit cpan, rename cpandb.sql, start cpan and reload the index:

    D:\perl\cpan> rename cpandb.sql cpandb.sql.bck D:\perl\cpan> cpan cpan> reload index Creating database file ... Done!

    Note that your path to cpandb.sql may differ from mine.

    Update: slight update to the example output.

      Thanks for all the replies, but nothing helped ( it's me who asked the question, I just registered after asking). So I used the right mirror, I used various mirror links actually, but the same result. It's probably something from this PC? I tried the same things from home, no problems, no mistakes.. but here I am behind proxy, at work, and behind god-knows-what security policies... but long story. I am sure I set up the proxy correctly( because in the beginning i got the wrong config and had different kind of fails ;) ) So maybe the problem is something local, but I have no idea what. I don't insist on using CPAN installation, I will be fine with manual configuration, but I am on Windows and don't have the make commands. Can someone suggest an alternative? Is dmake okay? Is there really a big difference between the two? I can get the modules that config with build-stuff, not the make-stuff, but not everything I need has it :( Or can I just download the module archives, extract and copy them in the perl folder - is that like a valid installation? And finally, I really, really just need some way to get the CPAN modules, if not fix my fails PS: If I write here, will someone take the time to help me? http://noc.perl.org as the source of contact details for the sysadmin(s).

        "Or can I just download the module archives, extract and copy them in the perl folder - is that like a valid installation?"

        This may take a long longer than you think, many modules have lots of dependencies.

        "Or can I just download the module archives, extract and copy them in the perl folder - is that like a valid installation?"

        Not wise, there are many modules containing C code which require compilation etc.

        "I don't insist on using CPAN installation, I will be fine with manual configuration, but I am on Windows and don't have the make commands. Can someone suggest an alternative? Is dmake okay? Is there really a big difference between the two?"

        In installation notes just replace the use of make with dmake, but you would be better resolving the issue you have IMHO.

        "nothing helped"

        Strange. Can you open a command prompt and try what I suggested and show me the output here?

Re: Cpan reload index failed
by Bloodnok (Vicar) on May 19, 2014 at 09:02 UTC
    It would appear, from some of tadays' chat on CB, that problems have been reported on a sporadic basis since Friday. marto kindly identified http://noc.perl.org as the source of contact details for the sysadmin(s). ambrus also suggested an alternative http://mcpan.org...

    A user level that continues to overstate my experience :-))

      They are using a mirror, which is working fine provided you use the correct URL (which is wrong in their example).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-18 22:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found