in reply to Cpan reload index failed

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.

Replies are listed 'Best First'.
Re^2: Cpan reload index failed
by greenhorn_007 (Acolyte) on May 20, 2014 at 15:43 UTC
    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?

        I can't find a file named cpandb.sql nowhere. Seached all the disk space - nothing
        Can't find the file you suggested I rename. Searched manually some dirs, then I searched the whole disk -simply nothing.