Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make Strawberry Perl's cpan(1) find perl?

I'm having trouble installing Template module with Strawberry Perl.

cpan Template

yields the following:

 Writing Makefile for AppConfig
 C:strawberryperlbinperl.exe: not found
 dmake.EXE:  Error code 255, while making 'blib\lib\.exists'`

I haven't been able to understand either

  • how to affect the path so dmake will work correctly
  • why the path (which is correct) does not have any \ in it.
like image 632
WalterVonBruegemon Avatar asked May 27 '10 17:05

WalterVonBruegemon


2 Answers

If you've been using MKS, you not only need to be sure you've removed it from your PATH, but you also need to ensure you don't have SHELL set to point to the MKS sh.exe.

I removed it from my PATH, and continued to struggle with this for a couple of more days until I realized dmake was invoking the wrong shell.

Hope this helps someone else down the road.

like image 187
Jeff Stampes Avatar answered Sep 18 '22 06:09

Jeff Stampes


The answer was I needed to uninstall (or at least remove from my path) the MKSTookit (basically a unix shell environment for Windows like Cygwin.) Not exactly sure why this fixed the problem - but it has cleared things up and I am able to install via CPAN. Thanks for everybody's answers and comments.

like image 28
WalterVonBruegemon Avatar answered Sep 19 '22 06:09

WalterVonBruegemon