delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/04/15:22:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 4 Mar 2003 15:20:52 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Konstantinos Makrodimitris <kmakr7 AT msn DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: 1.3.20-1 CYGWIN ; csh,bash and ./config
In-Reply-To: <F13thJCqUVbYq5IyQSA00003f8b@hotmail.com>
Message-ID: <Pine.GSO.4.44.0303041514350.25599-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

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] [<build_dir>/]<arch>[.comment]'
>   echo 'Environment variable NAMD_BUILD_BASE may point to scratch directory.'
>   echo ''
>   echo '<arch>: '
>   ( 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] [<build_dir>/]<arch>[.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/

- Raw text -


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