delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/10/07:15:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001010111441.7238.qmail@web118.yahoomail.com>
Date: Tue, 10 Oct 2000 04:14:41 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: Re, execuable problem on cygwin
To: Gongtao Wang <yww34 AT netzero DOT com>
Cc: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

--- Gongtao Wang <yww34 AT netzero DOT com> wrote:
> Dear Mr. Earnie,
> 
> I am a new user of cygwin.  I have installed the cygwin on top of my win '98
> ( 2nd edition).  Now I can start the cygwin environment from windows by
> clicking its icon.  The cygwin starts a simulation windows, and prompte
> 
> $ default AT computer
> $
> 
> then I can use vi, gcc and all system command, but I cannot run any my own
> executables.  It always gives me an error message " file not found"
> 
> So, my question " is there some environment parameter need to be set? for
> run user's executables?"
> 

Since we're emulating UNIX, if the executable isn't found in one of the
directories in the PATH list then you can't execute the program unless you
specify the path to the executable.  E.G.: I have a program foo.c that I've
compiled and linked with `gcc -o foo foo.c' and I want to execute foo.  To do
so I would do `./foo' and the program would execute.

If you want to always to be able to execute programs in the current working
directory then add the `.' directory to the PATH e.g. export PATH=$PATH:. .  If
you wish you may modify the /etc/profile file or you can add the previous
export to the ~/.bashrc file.

BTW, see http://sources.redhat.com/cygwin/lists.html and choose an appropriate
mailing list to post your questions to.  You'll probably get a faster answer.

FAQ ALERT: This question should be answered in the FAQ and I can't find it.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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