My guess is that the Perl executable perl.exe does live under c:\Program Files\ActiveState\Perl.exe and not under C:\Perl.exe. So please do a search for the file perl.exe, and then use the full path to perl.exe instead of c:\perl.exe, or maybe just leave the path out:
First try if Perl.exe was installed somewhere into the system path:
perl -lwe "print 'Perl works'"
If that gives perl is not a recognized command ..., find the location of Perl.exe (let's assume it is in c:\Program Files\ActivePerl\Bin\Perl.exe) and then try the following:
"c:\Program Files\ActivePerl\Bin\Perl.exe" -lwe "print 'Perl works'"
The quotes are important here!
If none of the two suggestions work, there is something really wrong with your installation of ActiveState Perl, and I can only suggest you uninstall and then reinstall it, this time taking all default selections.
If Perl is not installed with your Cygwin you need to install the Cygwin Perl package via the Cygwin setup program. Start the Cygwin setup program, select Perl there, and install it. After that, you should be able to launch Perl with these steps:
- Open the Cygwin console window via the Start menu
- type in: perl -lwe 'Perl works'
If that fails under Cygwin, your installation of Cygwin or your installation of Cygwin Perl did fail somewhere. |