X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-Mailer: YahooMailRC/975.41 YahooMailWebService/0.7.199 Date: Tue, 27 May 2008 08:03:26 -0700 (PDT) From: Eric Berge Subject: Re: Problems installing on vista, no /bin in path To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <365097.14478.qm@web55105.mail.re4.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Brian: I've been seeing the same problem with both bash behaving in this manner (presummably because of the simple non-existence of /etc/profile) and cases where bash segfaults immediately on startup. Both problems, while not confirmed to have the same root cause, have the same errors in postinstall as seen below. None the the identified BLODA options seem to apply in my case as these are relatively new/clean installs. The prime suspect would have been Windows Defender but on my boxes (Windows 2008 Server) it does not seem to be installed (nothing under "Programs and Features" or under "Programs" in the StartMenu). Let me know if there's something else going on here and Windows Defender might still be on my system. I tried to find out why the postinstalls failed but my current situation is that bash is in the "segfault mode" and thus the scripts fundamentally cannot run. I'll look for other ways of identifying why bash is segfaulting but any recommendations would be welcome. Otherwise I'll keep plugging away and let you know if I find anything new. -- Eric ----- Original Message ---- From: Brian Dessent To: Steinar Bang Cc: cygwin AT cygwin DOT com Sent: Monday, May 26, 2008 5:26:24 AM Subject: Re: Problems installing on vista, no /bin in path 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/ -- 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/