2

I just installed strawberry perl.
It's bin directory shows in the path but windows refuses to run it unless I give the full path (I even tried to reboot to make sure all environment variables was correct).

PS.
Same problem if I start cmd as admin.

What can I do do fix this?

enter image description here

2 Answers 2

7

You have a rogue " in the middle of your path. It looks like it could be messing things up.

...;c:\Program Files\Java\jdk1.6.0_20\bin";C:\ ...

I've also had a problem where a CRLF character has found its way into the path, so watch out for that. (Although in your case this isn't the problem, it could be for someone else reading this).

2
  • 2
    That will do it! Good catch RJ.
    – C0D3M0NK3Y
    Sep 3, 2011 at 13:16
  • 2
    Good catch, that fixed it. (stupid java)
    – Nifle
    Sep 3, 2011 at 13:28
-2

You need to add the Perl.exe as an environment variable for Windows. Go into your my computer properties and there should be some sort of advanced tab or area that will allow you to create the environment variable. The variable will be "perl" and it will resolve to "C:\strawberry\perl\bin\perl.exe".

2
  • No, that's not correct. If that where the case I'd have one environment variable for each exe I have, C:\strawberry\perl\bin alone contains close to 100 executable files.
    – Nifle
    Sep 3, 2011 at 13:07
  • While I agree, the vendor docs allude to the same method if you're having problems. Also there is the "use" directive that you can look into. win32.perl.org/wiki/index.php?title=Strawberry_Perl Though most of this is aimed at having multiple installs of Perl on your box. When in doubt, its Windows, try a reboot.
    – C0D3M0NK3Y
    Sep 3, 2011 at 13:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .