delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/11/21:08:13

X-Recipient: archive-cygwin AT delorie DOT 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 AT spocom DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Can't run Bash!
Message-ID: <20090512010727.GA12072@KCJs-Computer>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <23494205 DOT post AT talk DOT nabble DOT com>
Mime-Version: 1.0
In-Reply-To: <23494205.post@talk.nabble.com>
User-Agent: Mutt/1.4.2.2i
X-IsSubscribed: yes
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 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 AT 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/

- Raw text -


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