[Mono-list] Trouble with cygwin paths generated by mono-build-w32.sh

Richard Thombs mono@stony.org
Wed, 29 Oct 2003 19:18:55 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C39E51.7F0BDF90
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

I'm having problems running mcs and other mono tools under Cygwin
because their wrapper scripts and the .EXEs are in the same directory.
In this configuration it seems like Cygwin gets confused about whether
it should be loading the shell script or the executable. In order to get
it to work correctly, I've had to move all the EXEs apart from mono.exe
into a sub-folder, and modify the shell scripts to invoke them from
there. Otherwise I get errors like this:
 
% mcs fred.cs
bash: ./mcs: /bin/sh: bad interpreter: Permission denied
 
This isn't a permissions problem, it's Cygwin doing something silly, or
something I don't appreciate.
 
I'll gladly submit a patch to the Makefiles to work around this issue if
there's not a solution in place already.
 
Richard.

------=_NextPart_000_000A_01C39E51.7F0BDF90
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial size=3D2>I'm =
having problems=20
running mcs and other mono tools under Cygwin because their wrapper =
scripts and=20
the .EXEs are in the same directory. In this configuration it seems like =
Cygwin=20
gets confused about whether it should be loading the shell script or the =

executable. In order to get it to work correctly, I've had to move all =
the EXEs=20
apart from mono.exe into a sub-folder, and modify the shell scripts to =
invoke=20
them from there. Otherwise I get errors like this:</FONT></SPAN></DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial size=3D2>% mcs=20
fred.cs</FONT></SPAN></DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial size=3D2>bash: =
./mcs:=20
/bin/sh: bad interpreter: Permission denied</FONT></SPAN></DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial size=3D2>This =
isn't a=20
permissions problem, it's Cygwin doing something silly, or something I =
don't=20
appreciate.</FONT></SPAN></DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial size=3D2>I'll =
gladly submit a=20
patch to the Makefiles to work around this issue if there's not a =
solution in=20
place already.</FONT></SPAN></DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D254384414-29102003><FONT face=3DArial=20
size=3D2>Richard.</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_000A_01C39E51.7F0BDF90--