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

When attempting to use the CPAN command line, I am unable to either reload index or install any modules. I am asked for a username and password. If I leave both blank, I get the below error, titled NOUSERPASS. If I put something in the Username and Password (although I'm not even sure what would be considered authorized there) i get the error below labelled USERANDPASS. Has anyone found this problem before? How did you fix it? """NOUSERPASS"""
Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.d +etails.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modul +es/03modlist.data.gz Creating database file ... Gathering information + from index files ... fetch_info() failed! at C:\strawberry\perl\vend +or\lib/CPAN/SQLite/Index.pm line 57, <DATA> line 58. Indexing failed! + at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62, <DATA> line + 58. CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/ +SQLite/META.pm l ine 329, <DATA> line 58. Catching error: "system C:\ +\strawberry\\perl\\bin\\perl.exe -MCPAN::SQLite::META =setup,update - +e setup failed: 5632 at C:\\strawberry\\perl\\vendor\\lib/CPAN/SQ Lit +e/META.pm line 323.\cJ" at C:/strawberry/perl/lib/CPAN.pm line 391 CP +AN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295 App +::Cpan::_process_options('App::Cpan') called at C:/strawberry/perl/li + b/App/Cpan.pm line 364 App::Cpan::run('App::Cpan') called at C:\stra +wberry\perl\bin/cpan line 8
"""USERANDPASS"""
Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.d +etails.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modul +es/03modlist.data.gz Creating database file ... Gathering information + from index files ... fetch_info() failed! at C:\strawberry\perl\vend +or\lib/CPAN/SQLite/Index.pm line 57, <DATA> line 58. Indexing failed! + at C:/strawberry/perl/vendor/lib/CPAN/SQLite.pm line 62, <DATA> line + 58. CPAN::SQLite setup failed at C:/strawberry/perl/vendor/lib/CPAN/ +SQLite/META.pm l ine 329, <DATA> line 58. Catching error: "system C:\ +\strawberry\\perl\\bin\\perl.exe -MCPAN::SQLite::META =setup,update - +e setup failed: 5632 at C:\\strawberry\\perl\\vendor\\lib/CPAN/SQ Lit +e/META.pm line 323.\cJ" at C:/strawberry/perl/lib/CPAN.pm line 391 CP +AN::shell() called at C:/strawberry/perl/lib/App/Cpan.pm line 295 App +::Cpan::_process_options('App::Cpan') called at C:/strawberry/perl/li + b/App/Cpan.pm line 364 App::Cpan::run('App::Cpan') called at C:\stra +wberry\perl\bin/cpan line 8

Replies are listed 'Best First'.
Re: CPAN Module Install
by ansh batra (Friar) on Feb 21, 2012 at 13:46 UTC
    check your url list
    o conf init urllist use this command on cpan shell to check and edit it
    probabally your url list contains a url which needs authentication