问题
I installed the 32 bit version of Strawberry perl(5.14.2.1). I am able to run the perl command. When ever I run the cpan
command I get the following error:
Can't locate App/Cpan.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/msys /usr/
lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8
.8 /usr/lib/perl5/site_perl .) at /c/strawberry/perl/bin/cpan line 5.
BEGIN failed--compilation aborted at /c/strawberry/perl/bin/cpan line 5.
I migrated from the 64 bit version to the 32 bit version. The cpan
command used to work when I was using the 64 bit version.
回答1:
"/usr/lib/perl5/5.8.8/msys"? You aren't running Strawberry Perl! The cpan
file you are running was installed by another Perl. Try
C:\>c:\strawberry\perl\bin\perl -MCPAN -e shell
来源:https://stackoverflow.com/questions/10836862/strawberry-perl-cant-locate-app-cpan-pm