From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28713 invoked by alias); 29 May 2013 16:04:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28701 invoked by uid 89); 29 May 2013 16:04:17 -0000 X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,TW_YG autolearn=ham version=3.3.1 Received: from mail-gw2.desknetinc.com (HELO mail-gw2.desknetinc.com) (66.63.81.147) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 29 May 2013 16:04:16 +0000 Received: from mail-gw2.desknetinc.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id C4E7AF8EED for ; Wed, 29 May 2013 12:04:13 -0400 (EDT) Received: by mail-gw2.desknetinc.com (Postfix, from userid 503) id B044FF8EEC; Wed, 29 May 2013 12:04:12 -0400 (EDT) Received: from domino-me.desknetinc.com (domino-me.desknetinc.com [10.129.0.33]) by mail-gw2.desknetinc.com (Postfix) with ESMTP id C0D1FF8EEC for ; Wed, 29 May 2013 12:04:07 -0400 (EDT) In-Reply-To: References: To: cygwin@cygwin.com MIME-Version: 1.0 Subject: Re: Postinstall Script Errors With Exit Code 128 X-KeepSent: 146666CE:12B8AAEA-85257B7A:00581A1E; type=4; name=$KeepSent From: Paul.Nickerson@desknetinc.com Message-ID: Date: Wed, 29 May 2013 16:28:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-05/txt/msg00418.txt.bz2 >> Paul.Nickerson at desknetinc dot com wrote on 05/28/2013 03:43:11 PM: >> From: Paul.Nickerson at desknetinc dot com >> To: cygwin at cygwin dot com, >> Date: 05/28/2013 03:43 PM >> Subject: Postinstall Script Errors With Exit Code 128 >> >> I am attempting to install Cygwin, and am getting errors near the >> end of the process. I am using version 2.774 of setup.exe on >> Microsoft Windows Server 2003 R2 Datacenter x64 Edition Service Pack >> 2 and the default Cygwin packages. This is an Amazon AWS EC2 >> instance, and I am remote desktopping in. In the Cygwin Setup GUI, >> after it goes through the install procedure, I get a window titled >> Postinstall script errors, with the below output text: >> >> Package: base-cygwin >> 000-cygwin-post-install.sh exit code 128 >> Package: terminfo >> terminfo.sh exit code 128 >> Package: bash >> bash.sh exit code 128 >> Package: coreutils >> coreutils.sh exit code 128 >> Package: _autorebase >> autorebase.bat exit code -1073741819 >> Package: base-files >> base-files-profile.sh exit code 2816 >> base-files-mketc.sh exit code 128 >> Package: cygutils >> cygutils.sh exit code 127 >> Package: man >> man.sh exit code 128 >> >> If I then open Cygwin Terminal using the Desktop shortcut, I get a >> window titled "-sh" and a prompt that says "-sh-4.1$". The command >> "ls" returns "-sh: ls: command not found", but echo works. I have >> tried re-running setup.exe, removing the cygwin directory, re- >> downloading the setup.exe, removing HKEY_LOCAL_MACHINE\SOFTWARE >> \Wow6432Node\Cygwin from the registry, setting "Turn on DEP for >> essential Windows programs and services only" and rebooting, >> altering file and folder permissions, deleting the cache and using >> different mirrors, and using rdesktop in CentOS vs. mstsc.exe in >> Windows to remote desktop in, but none of this changes the behavior. >> >> I have an odd and possibly related behavior. If I open Command Prompt, run >> C:\cygwin\bin\bash.exe --norc --noprofile >> to get a "bash-4.1$" prompt, then in there run >> if [ "foo" = "foo" ]; then echo "Expression evaluated as true."; fi >> the bash prompt will exit back to command prompt, and %ERRORLEVEL% >> has been set to 128. >> Running that if statement in the window brought up by the Cygwin >> Terminal Desktop shortcut will sometimes make the window close, but >> not always. I have not explored how I might be triggering the >> Desktop shortcut to work or not work. >> >> I have attached setup.log and setup.log.full. >> >> When I run cygcheck -s -v -r >> cygcheck.out, it hangs and does not >> exit. Checking Task Manager, I see that it's using ~45% CPU (I have >> 2 virtual cores). It does write some things out to cygcheck.out, >> which I have attached. When I run the command in Command Prompt >> without redirecting output to a file, I get a little more >> information before it hangs, which I have copied out of the command >> prompt and attached as cygcheck-no-redirect.out. I do not know why >> it's saying I have multiple cygwin1.dlls on my path. There is only >> C:\cygwin\bin\cygwin1.dll. >> >> Looking at cygcheck.out, I am running in a Terminal Service session >> which makes sense as I am remote desktopped in. My problem might be >> related to FAQ #2.14 (http://cygwin.com/faq- >> nochunks.html#faq.setup.setup-fails-on-ts), but the DEP solution is >> not helping me. I tried running "C:\cygwin\bin>>peflags -- >> tsaware=true --tsaware *" in Command Prompt, but it did not change anything. >> [attachment "setup.log.full" deleted by Paul Nickerson/DeskNetInc] >> [attachment "cygcheck.out" deleted by Paul Nickerson/DeskNetInc] >> [attachment "setup.log" deleted by Paul Nickerson/DeskNetInc] >> [attachment "cygcheck-no-redirect.out" deleted by Paul Nickerson/DeskNetInc] > "Larry Hall (Cygwin)" > Tue, 28 May 2013 17:15:00 -0400 > Try removing GS and OpenVPN from you path and try installing again. If > that doesn't work, you might try installing "Just for Me". Sorry I'm replying to my original post. I forgot to actually subscribe to the mailing list, and didn't get your message in my inbox. I tried each of your suggestions, and they did not help it install. I also tried cygcheck again, and it did not run any better. Any other ideas? I'm at a loss right now. -- 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