Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: Re, execuable problem on cygwin To: Gongtao Wang Cc: cygwin users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Gongtao Wang 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 --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ 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