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


David,

This is very puzzling.  Your mounts are present in the registry, but
for some reason the Cygwin DLL can't see them.  Does your registry have
any special permissions?  Could you please post the results of

cd /cygdrive/c/cygwin/bin
./ls "/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus Solutions/Cygwin/mounts v2"
./regtool list "/HKLM/SOFTWARE/Cygnus Solutions/Cygwin/mounts v2"

as run from a bash shell?  Also, could you please run

.\strace -o ls_etc.strace ./ls /etc

from your c:\cygwin\bin directory, and e-mail me ls_etc.strace privately?
I'd like to see if the strace shows anything.  If it does, I'll post a
summary to the list.

FWIW, your user mounts seem to be visible, so *after you do the above*, as
a short-term workaround, you can try this:

mount -f -u -b "c:/cygwin" "/"
mount -f -u -b "c:/cygwin/bin" "/usr/bin"
mount -f -u -b "c:/cygwin/lib" "/usr/lib"

but be aware that this will give you a limited-use Cygwin (e.g., Cygwin
services, like sshd, still won't work).
HTH,
	Igor

On Sun, 18 Jul 2004, David J Jones wrote:

> This time, I double checked I followed the uninstall instructions and
> wiped it all out, every file downloaded and everything within the
> registry, just to be sure.  When installed, I tried something I read
> about permissions and created the directory by hand and gave full access
> to the directory to everyone.  Then downloaded a complete new set of
> files and installed.
> All the files seem to install fine according to the logs however the
> scripts once again fail and this message is produced.
>
> 2004/07/18 05:36:58 running: c:\cygwin\bin\sh.exe -c
> /etc/postinstall/apache.sh
> /etc/postinstall/apache.sh: not found
>
> When I run './ls /' it gives me the output of my C drive at it's root, if I
> understand correctly my root should be "c:/cygwin/" and not "c:/" as this
> reflects.
> Also "./ls /etc" reflects no such file or directory, which is expected given
> it points to the wrong place.
> I ran the mount command you gave and it does not change my mounts.  After
> running my mount output is 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$
>
> If I am starting to understand my exact problem (yes I could be wrong), I
> need to get my root changed and then run all the install scripts to get my
> system working?  Of course.. how is a good question to..
>
> Thank you for your assistance.
>
>
>
> -----Original Message-----
>
>
> You still have weird flags in your mounts.  Did you follow the directions
> in the FAQ link to completely wipe Cygwin off your machine before you
> reinstalled?
>
> If so, what do '.\ls.exe /' and '.\ls.exe /etc' print when started from
> c:\cyg1\bin?  Try also "mount -s -b -c /cygdrive", and see if it helps.
> Otherwise, I'm stumped.
> 	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/


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