Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 24 Sep 2002 09:35:28 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Betty Cheung cc: cygwin AT cygwin DOT com Subject: Re: gcc doesn't work but seemed to install fine... In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 23 Sep 2002, Betty Cheung wrote: > Hi, all, > > I installed cygwin 1.3.1 whole package on my PC with windows XP from > download.com as instructed and started cygwin from my desktop. But when I > compile a c program: gcc try.c -o try.exe, I got "bash: gcc: command not > found", then I typed 'man gcc' I got "bash: man: command not found". > Could anybody tell me how to use gcc with cygwin? any demo for that? > > Many Thanks! > > Betty Betty, It looks like your Cygwin was not set up properly (missing or incorrect $PATH, etc). This could have something to do with the fact that you didn't get it from an official Cygwin mirror... Also, 1.3.1 is OLD, OLD, OLD! Here's what you can do: Rename your current cygwin directory (to "cygwin.old", for example). Go to http://cygwin.com/ , click on "Install Cygwin now", and download setup.exe. Follow the instructions to upgrade your Cygwin to 1.3.12-4 (which is the latest for now; 1.3.13 may be released soon). You may choose any mirror. Also install gcc-2.95.3-5 (or you may try your luck with 3.2-1), and any other packages you think you need (e.g., man, less, etc). Move any files you created from your old cygwin tree to the new one. Then try your compilation again. Igor P.S. You may also remove your old cygwin tree at that point -- you won't need it anymore. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/