home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
- From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
- Newsgroups: comp.os.linux
- Subject: Re: Newbie GCC Problem -- PLEASE HELP!
- Message-ID: <1992Sep3.125615.18129@klaava.Helsinki.FI>
- Date: 3 Sep 92 12:56:15 GMT
- References: <7hlnv=q.harp@netcom.com>
- Organization: University of Helsinki
- Lines: 18
-
- harp@netcom.com (Gregory O. Harp) writes:
- >The simplest "Hello, world" program won't work. I get an executable
- >file, but it isn't. %) The permissions are all set right, but I get a
- >"command not found" message whenever I try to run it.
-
- If the executable is called a.out, and is in the working directory, try
- executing it with the command ./a.out and if that doesn't work, ask
- again. Unix shells don't look in the working directory by default, so
- you have to have . in your PATH environment variable to get that
- behaviour.
-
- This problem is most probably a very frequently asked question in
- comp.unix.questions (and comp.unix.wizards :), so looking in the FAQ of
- the unix groups should be profitable for Linux users too. This applies
- to many other problems with normal Unix usage.
-
- --
- Lars.Wirzenius@helsinki.fi
-