I have installed ActivePerl on my Windows OS. I have followed below URL
procedure to install
After having done that, I have tried to run “perl -v ” on the command line. But it reports the following error.
The system cannot execute the
specified program
What do I need to do to solve these issues?
You need to make sure the directory where the Perl executable lives (it might be
C:\perl\bin, but basically wherever you told ActiveState Perl to be installed) is in your PATH environmental variable (you can find the variable value by typingset PATHcommand on command line prompt in Windows).If you’re not sure where you installed Perl to (and can’t find it in the default
C:\perl\bin), you can find the directory by going to Start menu, finding ActiveState Perl folder, and right-clicking on “Perl Package Manager” icon, then pick “Properties” from the right-click menu. Properties window (in the “Shortcut” tab) will have a “Target” line showing the directory.