By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,903 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,903 IT Pros & Developers. It's quick & easy.

unable to get the perl version installed

P: 65
Hi everyone,

I have installed ActivePerl-5.10.0.1001-MSWin32-x86-283495.msi in my system
(os-win2k) problem is when i try to get perl version by typing perl -v in cmd prompt i get a popup saying

''can't find the file'perl' or (one of its componnets).Make sure the filename & path are correct and that all the required libraries are avialble.''

but i got the perl folder in c: drive with all the other sub folders within it after installation.

i have worked on perl before but not from scratch ie, by installing perl..

please can anyone tell me where am doing a mistake !!!!!

am not able to run the perl script.

if am not wrong all the *.pl file should turn to yellow symbol but in my case it's still shows it in txt format.
Sep 6 '08 #1
Share this Question
Share on Google+
5 Replies


Ganon11
Expert 2.5K+
P: 3,652
You have to set the PATH command to include the filepath "C:\Perl\bin" or the equivalent for your system.

To do this, open your command prompt window and type:

Expand|Select|Wrap|Line Numbers
  1. set PATH
This will display the current PATH value - it is a list of filepaths separated by the ';' character. You need to copy and paste this value into notepad (getting rid of all the newlines so that the path is all on one line), add the filepath to perl.exe at the beginning, then copy this. Go back to your command prompt and type:

Expand|Select|Wrap|Line Numbers
  1. set PATH=
but do not press enter. Now paste the new PATH value into your command prompt and hit enter. Make sure this worked by retyping:

Expand|Select|Wrap|Line Numbers
  1. set PATH
If the value displayed contains "C:\perl\bin" (or whatever) then you are set!
Sep 6 '08 #2

numberwhun
Expert Mod 2.5K+
P: 3,503
One suggestion from my end. If you are working on Windows (which you said you are), I highly recommend you use Strawberry Perl instead of Active State. AS limits what Modules are available to you, while SP uses the CPAN repository directly.

I have used it for quite some time and its much better IMHO. Plus, the CPAN interface comes pretty much all ready to use. Personally, I hate it when I want to play with a module and I can't because AS didn't have it "ported" to their system. I had that happen far too many times with AS.

Regards,

Jeff
Sep 6 '08 #3

KevinADC
Expert 2.5K+
P: 4,059
Add perl to the command path as already explained or use the full path to perl from the command prompt:

Expand|Select|Wrap|Line Numbers
  1. c:\perl\bin\perl.exe -v
Sep 6 '08 #4

P: 65
You have to set the PATH command to include the filepath "C:\Perl\bin" or the equivalent for your system.

To do this, open your command prompt window and type:

Expand|Select|Wrap|Line Numbers
  1. set PATH
This will display the current PATH value - it is a list of filepaths separated by the ';' character. You need to copy and paste this value into notepad (getting rid of all the newlines so that the path is all on one line), add the filepath to perl.exe at the beginning, then copy this. Go back to your command prompt and type:

Expand|Select|Wrap|Line Numbers
  1. set PATH=
but do not press enter. Now paste the new PATH value into your command prompt and hit enter. Make sure this worked by retyping:

Expand|Select|Wrap|Line Numbers
  1. set PATH
If the value displayed contains "C:\perl\bin" (or whatever) then you are set!
hi All,

Thanks for your reply's guys.

i have tried with Ganon11 said (above)steps but i didn't get the exact solution.
when i type set PATH in the cmd prompt am getting the same popup saying components,path & libraries not found.
but when i tried with kevinadc said solution ie, by typing the
c:\perl\bin\perl.exe -v in cmd prompt
am getting the cmd window which comes & goes very fast.

Is there any other way where i can set the path for the perl ???

Regards,
Vijayarl
Sep 7 '08 #5

P: 65
hi All,

Thanks for your reply's guys.

i have tried with Ganon11 said (above)steps but i didn't get the exact solution.
when i type set PATH in the cmd prompt am getting the same popup saying components,path & libraries not found.
but when i tried with kevinadc said solution ie, by typing the
c:\perl\bin\perl.exe -v in cmd prompt
am getting the cmd window which comes & goes very fast.

Is there any other way where i can set the path for the perl ???

Regards,
Vijayarl
Hi Everyone,

Thanks for your support,it really worked...
thanks to kevin,Ganon11 for thier inputs.
Sep 8 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.