Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 4 Mar 2003 15:20:52 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Konstantinos Makrodimitris cc: cygwin AT cygwin DOT com Subject: Re: 1.3.20-1 CYGWIN ; csh,bash and ./config In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Konstantinos, First off, the script is written for csh. Why would you expect sh or bash to be able to interpret it? These shells use different syntax. The original script failed because you don't have csh installed. Cygwin does not have a "csh" package, but it does have a "tcsh" package that makes /bin/csh a symbolic link to /bin/tcsh. Please install the "tcsh" package. If you do have it installed, something is corrupted in your installation, please re-install it using setup.exe. Note that you don't need to reinstall Cygwin, just the "tcsh" package. Igor P.S. FYI, there is also an "ash" package that provides a "real" /bin/sh. On Tue, 4 Mar 2003, Konstantinos Makrodimitris wrote: > Hi, > > I am trying to run a configure file > ./config Cygwin-i686 > in order then to : > > cd Cygwin-i686 > make > > The file config is like: > _____________________________________________________________________ > #!/bin/csh -f > goto begin > syntax: > echo '' > echo 'Usage: config [debug] [tcl] [fftw] [/][.comment]' > echo 'Environment variable NAMD_BUILD_BASE may point to scratch directory.' > echo '' > echo ': ' > ( cd arch ; ls -1 *.arch |sed -e 's/\.arch//' | egrep -v 'template' | pr -3 -t) > echo '' > exit 1 > > begin: > if ($#argv < 1) goto syntax > if ( $1 == debug ) then > set use_debug = 1 > shift > else > set use_debug = 0 > endif > .. . > _____________________________________________________________________ > > I take: > > bash: ./config: /bin/csh: bad interpreter: No such file or directory > > Changing the first line of the config in sh mode > #!/bin/sh f > > I take: > > $ sh ./config Cygwin-i686 > goto: not found > syntax:: not found > Usage: config [debug] [tcl] [fftw] [/][.comment] > Environment variable NAMD_BUILD_BASE may point to scratch directory. > > Also > ln -s /bin/bash.exe /bin/sh.exe > didnt work > > Could you please give me your advice. > > My Best, > Konstantinos Makrodimitris -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/