1.3.20-1 CYGWIN ; csh,bash and ./config

Igor Pechtchanski pechtcha@cs.nyu.edu
Tue Mar 4 20:34:00 GMT 2003


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/



More information about the Cygwin mailing list