From owner-freebsd-hackers Fri Dec 27 08:51:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA27404 for hackers-outgoing; Fri, 27 Dec 1996 08:51:16 -0800 (PST) Received: from geo.geoaccess.net (root@[204.244.119.126]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id IAA27398 for ; Fri, 27 Dec 1996 08:51:14 -0800 (PST) Received: from localhost (root@localhost) by geo.geoaccess.net (8.7.5/8.7.3) with SMTP id IAA01157 for ; Fri, 27 Dec 1996 08:51:08 -0800 Date: Fri, 27 Dec 1996 08:51:08 -0800 (PST) From: root To: hackers@FreeBSD.org Subject: How to run C programs on FreeBSD Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Recently I purchased FreeBSD Release 2.1.5 and installed on my machine for developer package. I tried to run a small program hello.c to print on screen. After editing hello.c and I compile it as as: gcc -o hello hello.c hello It supposed to print: Hello World! However, the system responded: "Command not found" I checked file mode hello and it was rwxr_xr_x. It should run. Also I made a perl script to rpint "Hello world!". I set the script mode as 777 after editing. When I tried to run it, it gave me the same error message as before for c program hello. What do I have to do to run it? Would you please help me out? It would be greatly appreciated. Thank you so much. Yung, yung@geoaccess.net