This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Error: /bin/bash: bad interpreter: No such file or directory


I re-installed: downloaded an entire new batch of files in case something
was incorrect and installed even at a different location, just in case.  The
same problem happened but I did learn something new which may help someone
more knowledgeable give assistance.

I found in the setup logs this concerning the postinstall scripts.

2004/07/17 12:33:15 running: c:\cyg1\bin\sh.exe -c
/etc/postinstall/base-files-mketc.sh
/etc/postinstall/base-files-mketc.sh: not found

Every script that needs to be run during postinstall had this same error, I
did not include the entire setup log because of size but I did attach the
cygcheck output.

Thank you again.



> 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: <http://cygwin.com/acronyms/#CYNUX>.

> 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 <http://cygwin.com/faq/faq_2.html#SEC19>).
	Igor


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

Attachment: check1
Description: Binary data

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]