Reputation: 6361
I accidentally interrupted CPAN while it was doing the initial configuration and now I cannot start it again.
I am receiving the error
Error while requiring CPAN::MyConfig: CPAN/MyConfig.pm did not return a true value at /usr/share/perl/5.14/CPAN/HandleConfig.pm line 507
Is there any way to rerun the config if I can't even open the cpan shell?
Upvotes: 2
Views: 2723
Reputation: 6943
As Jonathan said, moving that file out of the way will let you continue. Though better would be to use "cpan minus": http://search.cpan.org/dist/App-cpanminus/lib/App/cpanminus.pm
It is much faster and simpler to use and has lots of amazing features.
https://github.com/miyagawa/cpanminus
Upvotes: 4
Reputation: 753675
Remove the file CPAN/MyConfig.pm
(or, better, move it somewhere; you might want to look at it).
Then try again.
Upvotes: 6