Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 789
Harish Shetty Avatar asked Dec 27 '22 23:12

Harish Shetty


1 Answers

"/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
like image 164
ikegami Avatar answered Jan 05 '23 23:01

ikegami