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: Sat, 17 Jul 2004 11:47:20 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: David J Jones cc: cygwin AT cygwin DOT com Subject: Re: Error: /bin/bash: bad interpreter: No such file or directory In-Reply-To: Message-ID: References: <8b14383248df5e0be0b9d4c43f8325b8 AT NO-ID-FOUND DOT mhonarc DOT org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Sat, 17 Jul 2004, David J Jones wrote: > Igor took a guess yesterday and I have to agree from what little I seem to > remember of unix, my mounts are screwed up. First off, just a reminder: . > The problem is this.. > > If I run a script with the initial heading of: > > #! /bin/bash > > I get this error: > > bash-2.05b$ ./Test > bash: ./Test: /bin/bash: bad interpreter: No such file or directory > bash-2.05b$ > > If I change the initial heading in my script to this > > #! /cygwin/bin/bash > > It works. You have already given this information. > I am assuming thus far, I need a / to be my root director and that needs to > be aimed at c:/cygwin. I have tried (more like fumbled) with the mount > command to make this happen but seems I lack the knowledge to actually make > work. > > Thanks in advance for any help For the future, please *attach* your cygcheck output instead of including it inline. Inline cygcheck output produces too many false positives on archive searches. It looks like your postinstall scripts didn't run correctly. Your /etc/passwd and /etc/group are either missing or unreadable. Also, it's weird that mount doesn't show system mounts, even though cygcheck sees them. The mount flags for both /cygdrive show user mounts, not system ones. Very weird. Unless you have too much stuff already in your Cygwin installation (doubtful), your best bet would probably be to just reinstall everything from scratch (see ). Igor > From the cygcheck I have learned this much : > [snip] > Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 > > HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 > (default) = `/cygdrive' > cygdrive flags = 0x00000022 > > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin > HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 > (default) = `/cygdrive' > cygdrive flags = 0x00000022 ^^^^^^^^^^ > [snip] > . /cygdrive user binmode,cygdrive > c:\cygwin / system binmode > c:\cygwin/bin /usr/bin system binmode > c:\cygwin/lib /usr/lib system binmode > . /cygdrive system binmode,cygdrive > > From the mount command, I get this: > > bash-2.05b$ mount > c: on /cygdrive/c type user (binmode,noumount) > d: on /cygdrive/d type user (binmode,noumount) > e: on /cygdrive/e type user (binmode,noumount) > f: on /cygdrive/f type user (binmode,noumount) > g: on /cygdrive/g type user (binmode,noumount) > h: on /cygdrive/h type user (binmode,noumount) > bash-2.05b$ -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/