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 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 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/