delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/07/19:15:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-BigFish: VP
Date: Tue, 07 Sep 2004 17:15:27 -0600
From: Isaac Foraker <isaac DOT foraker AT xilinx DOT com>
Subject: Re: 1.5.11: execvp bug (XP)
To: cygwin AT cygwin DOT com
Message-id: <413E410F.5010901@xilinx.com>
Organization: Xilinx, Inc.
MIME-version: 1.0
User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Yes, the perl soft link works from the command line.  Here's my test case that fails.

<foo.pl>
#!/usr/bin/perl

print "Success.\n"
</foo.pl>

<Makefile>
default:
        perl foo.pl
</Makefile>

#ls -l /usr/bin/perl
lrwxrwxrwx    1 isaacf   Domain U       24 Sep  7 12:44 /usr/bin/perl -> /usr/bin/perl5.8.5.exe

#gmake
perl foo.pl
gmake: execvp: perl: Permission denied
gmake: *** [default] Error 127

#perl foo.pl
Success.

You may also need to "rm /usr/bin/perl.exe" before you can "ln -s /usr/bin/perl5.8.5.exe /usr/bin/perl".

IF

Tue, 7 Sep 2004 18:34:30 -0400, Christopher Faylor wrote:
> On Tue, Sep 07, 2004 at 12:51:26PM -0600, Isaac Foraker wrote:
> >I have run into a bug when upgrading from 1.5.10 to 1.5.11.  I use a 
> >soft-link for /usr/bin/perl to point to the real version of Perl running 
> >on my system.  This lets me switch easily between the Native ActiveState 
> >Perl and Cygwin Perl.  This used to work fine, but now my 'make' is 
> >failing when running perl.  Note: make.exe is renamed to gmake.exe in my 
> >environment to avoid conflicts with Opus make.
> >
> >#ls -l /usr/bin/perl
> >lrwxrwxrwx    1 isaacf   Domain U       24 Sep  7 12:44 /usr/bin/perl -> 
> >/usr/bin/perl5.8.5.exe
> >
> ></Makefile>
> >default:
> >   perl foo.pl
> ></Makefile>
> >
> >#gmake
> >gmake: execvp: perl: Permission denied
> 
> WFM, sorry.
> 
> Can you run perl from the command line?
> 
> cgf


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019