delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/07/06/13:00:11

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6218E3857C77
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=moss AT cs DOT umass DOT edu
Subject: Re: No such file or directory
To: ASSI <Stromeko AT nexgo DOT de>, cygwin AT cygwin DOT com
References: <CAL1vE2-2pCNMd+fu7EVOWddjUnC0o1Kk76B-g-TQmgOFfT_c9w AT mail DOT gmail DOT com>
<87pn98ppeg DOT fsf AT Otto DOT invalid>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <09da43ec-3235-dc9a-580a-916bc95616a9@cs.umass.edu>
Date: Mon, 6 Jul 2020 12:59:13 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <87pn98ppeg.fsf@Otto.invalid>
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 7/6/2020 12:41 PM, ASSI wrote:
> Billie Healy via Cygwin writes:
>> I downloaded Cygwin for use in a C programming class. I made sure to also
>> include gcc, make, nano, and vim. Nano and Vim do fine, but when I enter
>> gcc hello.c
>> bash reponds "no such file or directory."
> 
> It would help if you posted the actual command line and response on the
> terminal.  If gcc was complaining about hello.c missing then it would
> give you a more elaborate error message than what you have shown and if
> bash was complaining about gcc missing it would say "gcc: command not
> found".

And I would ask: "Is gcc on your path?"  For example, on my system, which
has gcc installed, the response to "type gcc" is "/usr/bin/gcc".  If I
do "type xxx" (some non-existent program) I get "xxx: not found".

Sounds to me like you may need to set up your PATH variable ...

If you're going to be using cygwin, then this should be a somewhat
familiar concept.  One typical place to set it up is in your
.bash_profile file in your HOME directory (mine is /home/moss in
the cygwin tree).

Best _EM
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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