Paul Whitbread wrote:

> Hi!
> 
> I've recently reinstalled windows and came to reinstalling a new version 
> of ActivePerl.  Managed to get it the basic setup to work, and can run 
> my .cgi scripts. However, I then upload these scripts to various 
> webservers with different #! locations. No problem, you can configure 
> Apache to ignore the shebang line [as I successfully did with my 
> previous install on Win98+PWS+ActiveP]. Unfortunately, I just can't get 
> it to work. Spent ages messing around with apache to no avail.  However, 
> I've now traced the problem back to ActivePerl.  If I load up a command 
> prompt and do:
> 
> perl test.pl
> 
> where test.pl:
> 
> #!/usr/bin/
> print qq|hello|;


That would normally be /usr/bin/perl not /usr/bin.


> then I get the error: "Can't exec /usr/bin/ at test.pl line 1".  If I 
> edit the first line to #!c:/net/perl/bin/perl.exe or delete it 
> altogether, then it runs the script no problem.  I've had a search in 
> all the usual places but can't find anybody who has had the same 
> problem.  Can anyone tell me what I've done wrong [or haven't done]? 
> Cheers!


'perl test.pl' should not cause Perl to use the path on the shebang line,
just any switches after it.  I tested my Perl (629) it seems to not be
bothered by it.  The new Apache I find does fail where it used to work.

I haven't sorted through where the problem is, but you need the full
path on the shebang line for the new Apache (2.0.35 I believe) to get
it to work.  I was using /usr/bin/perl previously (Apache 1.3.22) and
it worked fine.  Upgrading to 2.0.35 caused it to fail.  I've tried several
different methods (I don't have any file assoc set up for Perl) of
specifying the shebang line to get it to work to no avail yet.

I was going to check the bug reports and see if it's known and in process.


-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to