本文介绍了草莓perl,无法找到App/Cpan.pm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了32位版本的Strawberry Perl(5.14.2.1).我能够运行perl命令.每当我运行cpan命令时,都会出现以下错误:

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.

我从64位版本迁移到了32位版本. cpan命令曾经在我使用64位版本时起作用.

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.

推荐答案

"/usr/lib/perl5/5.8.8/msys"?您没有在运行Strawberry Perl!您正在运行的cpan文件是由另一个Perl安装的.试试

"/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

这篇关于草莓perl,无法找到App/Cpan.pm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 13:52