Strawberry perl, Can't locate App/Cpan.pm

为君一笑 提交于 2020-01-21 12:12:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!