delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/12/07:59:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 12 Mar 2010 13:59:29 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bash exits when test or [ ] is used in Windows Server 2008
Message-ID: <20100312125929.GM6505@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1268395239 DOT 9484 DOT 8 DOT camel AT latitude>
MIME-Version: 1.0
In-Reply-To: <1268395239.9484.8.camel@latitude>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mar 12 13:00, Dick wrote:
> Hello all,
> 
> I've just installed cygwin in Windows Server 2008, I've only selected
> rpm-build and libintl-2 as additional packages. During install there are
> no error messages.
> 
> Then when I start cygwin my home directory isn't made and no profiles
> are created. And worse, when I try to start:
> 
> bash-3.2$ test -e
> 
> cygwin quits.
> 
> bash-3.2$ [ ]
> 
> does the same.
> 
> What could be wrong? I've tried reinstalling cygwin a few times.

Is the 2K8 server running Terminal Services?  If so, you could stumble
over a bug in the TS application compatibility layer when running
applications which don't have the TS awareness flag set in their PE/COFF
header.  I reported that bug, but the frontlevel support refused to
follow up on this bug.

What you can do is, switch off DEP for all applications and reboot.  Now
you should be able to run all Cygwin applications.  Either keep it that
way or run the peflagsall script with the "-t 1" option, reset the DEP
setting and reboot again.

Occasionally after updating Cygwin you might have to run peflagsall
again.  This is supposed to get better over time, the more Cygwin
packages will have the TS-awareness flag from the start, now that gcc-4
sets the flag automatically.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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