chuckd has asked for the wisdom of the Perl Monks concerning the following question:
I'm having trouble using CPAN with Strawberry Perl.
I run "perl -MCPAN -e shell" from the comand prompt to get into CPAN>. Then I type "i /some search query/" and this is what I get:
DBD::SQLite::db prepare failed: no such table: dists(1) at dbdimp.c line 271 at
C:\strawberry\perl\site\lib/CPAN/SQLite/DBI/Search.pm line 89, <IN> line 4.
Catching error: 'DBD::SQLite::db prepare failed: no such table: dists(1) at dbdi
mp.c line 271 at C:\\strawberry\\perl\\site\\lib/CPAN/SQLite/DBI/Search.pm line
89, <IN> line 4.
' at C:/strawberry/perl/lib/CPAN.pm line 281
CPAN::shell() called at -e line 1
Does anyone know what is going on??
I searched for it with google, and the first hit (at least on google.de; it's a German page) has a solution: delete the delete the corrupted database, or even the cpan folder (you could lose some configuration; make a backup first...).
On strawberry perl you can find it in C:\strawberry\cpan\, on decent operating systems in ~/.cpan/. Thank you Alvar ;-).