home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9792 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.4 KB

  1. Path: sparky!uunet!mcsun!uknet!mucs!mccuts!zlsiial
  2. From: zlsiial@uts.mcc.ac.uk (A. V. Le Blanc)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Newbie GCC Problem -- PLEASE HELP!
  5. Message-ID: <5752@mccuts.uts.mcc.ac.uk>
  6. Date: 3 Sep 92 14:14:19 GMT
  7. References: <7hlnv=q.harp@netcom.com>
  8. Reply-To: LeBlanc@mcc.ac.uk (A. V. Le Blanc)
  9. Organization: Computing Centre, University of Manchester
  10. Lines: 24
  11.  
  12. In article <7hlnv=q.harp@netcom.com> harp@netcom.com (Gregory O. Harp) writes:
  13. >
  14. >I've just installed the MCC-Interim (0.97p2) distribution, and I 
  15. >can't get gcc to create useable executables.
  16. >
  17. >The simplest "Hello, world" program won't work.  I get an executable
  18. >file, but it isn't. %) The permissions are all set right, but I get a
  19. >"command not found" message whenever I try to run it.
  20.  
  21. If you log in as root on a standard MCC-installed system, your path
  22. (for security reasons) does not include your current directory.  Therefore,
  23. if you compile a program named 'prog', you must run it by typing the command
  24.  
  25.      ./prog
  26.  
  27.  
  28. If, on the other hand, you log in as 'user', you may simply type 'prog';
  29. that is, assuming that your program doesn't duplicate the name of one of
  30. the system commands.  By default the MCC-installed PATH for non-root
  31. users searches the current directory last; this can cause some people to
  32. have trouble with programs named 'test' and the like.
  33.  
  34.      -- Owen
  35.      LeBlanc@mcc.ac.uk
  36.