X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Date: Mon, 11 May 2009 18:07:27 -0700
From: Gary Johnson <garyjohn@spocom.com>
To: cygwin@cygwin.com
Subject: Re: Can't run Bash!
Message-ID: <20090512010727.GA12072@KCJs-Computer>
Mail-Followup-To: cygwin@cygwin.com
References: <23494205.post@talk.nabble.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <23494205.post@talk.nabble.com>
User-Agent: Mutt/1.4.2.2i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2009-05-11, Yarin wrote:
> I'm trying to compile linux binaries on Windows. To do this, I've downloaded
> and installed Cygwin (along with it's GCC packages).
> 
> But upon executing it, I'm confronted with this:
> bash-3.2$ _
> Even though I've ran a linux prompt before, I have [I]not[/I] a clue what to
> do next. It doesn't recognize the command su, and it doesn't begin with x@x:
> like I remember either.
> 
> Could someone please explain to me how to navigate my "programs" (located in
> /bin)?

Since you didn't give any details of how you executed bash, I'm
assuming from the behavior you describe and from the appearance of
your bash prompt that you simply executed "bash" from a Windows
Command Prompt.  You need to instead run bash as a login shell.
That will set up the environment much as logging on to a Linux
system does, including setting your PATH appropriately.  The easiest
way to do that is to double-click the Cygwin icon on your desktop.
Alternatively, from a Windows Command Prompt, you can run
"C:\cygwin\cygwin.bat" or "C:\cygwin\bin\bash --login -i".

Regards,
Gary



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

