home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!mccuts!zlsiial
- From: zlsiial@uts.mcc.ac.uk (A. V. Le Blanc)
- Newsgroups: comp.os.linux
- Subject: Re: Newbie GCC Problem -- PLEASE HELP!
- Message-ID: <5752@mccuts.uts.mcc.ac.uk>
- Date: 3 Sep 92 14:14:19 GMT
- References: <7hlnv=q.harp@netcom.com>
- Reply-To: LeBlanc@mcc.ac.uk (A. V. Le Blanc)
- Organization: Computing Centre, University of Manchester
- Lines: 24
-
- In article <7hlnv=q.harp@netcom.com> harp@netcom.com (Gregory O. Harp) writes:
- >
- >I've just installed the MCC-Interim (0.97p2) distribution, and I
- >can't get gcc to create useable executables.
- >
- >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 you log in as root on a standard MCC-installed system, your path
- (for security reasons) does not include your current directory. Therefore,
- if you compile a program named 'prog', you must run it by typing the command
-
- ./prog
-
-
- If, on the other hand, you log in as 'user', you may simply type 'prog';
- that is, assuming that your program doesn't duplicate the name of one of
- the system commands. By default the MCC-installed PATH for non-root
- users searches the current directory last; this can cause some people to
- have trouble with programs named 'test' and the like.
-
- -- Owen
- LeBlanc@mcc.ac.uk
-