Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rerun CPAN Config on Linux?

Tags:

perl

cpan

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?

like image 928
Takkun Avatar asked Dec 02 '25 06:12

Takkun


1 Answers

Remove the file CPAN/MyConfig.pm (or, better, move it somewhere; you might want to look at it).

Then try again.

like image 107
Jonathan Leffler Avatar answered Dec 03 '25 21:12

Jonathan Leffler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!