On Wed, 31 Jan 2007 14:16:08 -0800, Bill Luebkert
<[EMAIL PROTECTED]> wrote:
>cathy wang wrote:
>> I downloaded activeperl and configure iis for cgi setting.
>>
>> However, when I tried to run perl.exe, I always got the error:
>>
>> C:\program
>> files\activeperl-5.8.8.820-MSWin32-x64-274739\per\bin\perl.exe is not a
>> valid win32 applicaton.
I notice a missing 'l' in '...\per\bin\...'
>> I also try to run perl script: perl -c myscript.pl
>>
>> I got 'perl' is not recognized as an internal or external command,
>> operable programor batch file.
>>
>> What am I missing here?
>
>Is that the default path to Perl these days ? I'd uninstall it and
>install it at c:\perl to make things easier. Then you need to make
>sure that c:\perl\bin is in your PATH env vrbl (type 'set' in cmd
>shell to verify). If not, you can either add it or use the full
>path to perl to run a script eg: c:\perl\bin\perl -c myscript.pl
>Obviously with the path that you currently have it'll take a lot of
>typing if it's not on your path.
No, this is *not* the default path. The default is still
%SystemDrive%\Perl
The installer will add Perl\site\bin and Perl\bin to the PATH
automatically (unless you uncheck the option in the installer), but the
new setting will not change existing cmd.exe Windows. I noticed that at
least on some systems I need to explicitly go to the computer properties
and refresh the environment settings because somehow MSI doesn't seem to
notify the Explorer correctly.
Anyways, for IIS to recognize the new environment settings you need to
restart IIS. To be completely safe it may be easiest to reboot the
machine.
Cheers,
-Jan
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs