From dd270783f385aa11abd05b0d7eb6cceda19bf711 Mon Sep 17 00:00:00 2001 From: simonpj Date: Tue, 13 May 2003 08:17:13 +0000 Subject: [PATCH] [project @ 2003-05-13 08:17:13 by simonpj] Improve notes on Cygwin installation --- docs/building/building.sgml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/docs/building/building.sgml b/docs/building/building.sgml index 6a0e950..565b0be 100644 --- a/docs/building/building.sgml +++ b/docs/building/building.sgml @@ -4251,8 +4251,24 @@ There are a few other things to do: +By default, cygwin provides the command shell ash +as sh.exe. We have often seen build-system problems that +turn out to be due to bugs in ash +(to do with quoting +and length of command lines). On the other hand bash seems +to be rock solid. +So, in cygwin/bin +remove the supplied sh.exe (or rename it as ash.exe), +and copy bash.exe to sh.exe. +You'll need to do this in Windows Explorer or the Windows cmd shell, because +you can't rename a running program! + + + + + Some script files used in the make system start with "#!/bin/perl", -(and similarly for bash). Notice the hardwired path! +(and similarly for sh). Notice the hardwired path! So you need to ensure that your /bin directory has the following binaries in it: @@ -4264,21 +4280,10 @@ All these come in Cygwin's bin directory, which you probabl installed as c:/cygwin/bin. By default Cygwin mounts "/" as c:/cygwin, so if you just take the defaults it'll all work ok. (You can discover where your Cygwin -root directory / is by typing mount). +root directory / is by typing mount.) Provided /bin points to the Cygwin bin -directory, there's no need to copy anything. - - - - - -By default, cygwin provides the command shell ash -as sh.exe. It has a couple of 'issues' (to do with quoting -and length of command lines), so -in your /bin directory, make sure that -bash.exe is also provided as sh.exe -(i.e. overwrite the old sh.exe with a copy of -bash.exe). +directory, there's no need to copy anything. If not, copy these binaries from the cygwin/bin +directory (after fixing the sh.exe stuff mentioned in the previous bullet). -- 1.7.10.4