delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/26/06:26:33

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <483A9050.38805BC1@dessent.net>
Date: Mon, 26 May 2008 03:26:24 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Steinar Bang <sb AT dod DOT no>
CC: cygwin AT cygwin DOT com
Subject: Re: Problems installing on vista, no /bin in path
References: <773927 DOT 49356 DOT qm AT web55105 DOT mail DOT re4 DOT yahoo DOT com> <87od6twf4j DOT fsf AT dod DOT no>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Steinar Bang wrote:

> 2008/05/23 13:26:24 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/terminfo.sh
> 2008/05/23 13:26:33 abnormal exit: exit code=35584
> 2008/05/23 13:26:33 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/update-info-dir.sh
> 2008/05/23 13:26:38 abnormal exit: exit code=35584
> 2008/05/23 13:26:38 running: C:\cygwin\bin\bash.exe -c /etc/postinstall/00bash.sh
> 2008/05/23 13:26:43 abnormal exit: exit code=35584
> ...

You need to find out why these fail.  Probably BLODA.

> What I did was
>  1. start cmd.exe
>  2. type c:\cygwin\bin\bash at the cmd prompt
>  3. I get a
>       bash-32$
>     prompt, and no cygwin utilities found (ie. the same behaviour as
>     when starting the cygwin shortcut)

That is not a valid test, because just running bash with no options does
not start a login session, and therefore the /etc/profile will not be
sourced, and it is there that /usr/bin is added to PATH.  So it's
expected behavior that if you do the above, no commands (except for bash
builtins) will work because they are not in the PATH.  If you look at
the cygwin.bat file, you'll see that bash needs to be started with the
--login (or -l) option for a proper environment.

But that aside, it won't work anyway even if you start a login shell,
since /etc/profile is only installed from /etc/defaults/etc/profile by
the base-files-profile.sh postinstall script of the 'base-files'
package.  Since your postinstall scripts are failing, you need to find
out what's wrong there before anything will work.  You won't have a
working system until postinstall scripts are run correctly.

Brian

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

- Raw text -


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