Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 6 down vote accepted

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).

share|improve this answer
2  
That will do it! Good catch RJ. –  C0D3M0NK3Y Sep 3 '11 at 13:16
1  
Good catch, that fixed it. (stupid java) –  Nifle Sep 3 '11 at 13:28

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

share|improve this answer
    
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 '11 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 '11 at 13:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.