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.
"/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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.