From owner-freebsd-hackers Fri Dec 27 09:31:55 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA29306 for hackers-outgoing; Fri, 27 Dec 1996 09:31:55 -0800 (PST) Received: from trinity.radio-do.de (fn@trinity.Radio-do.de [193.101.164.3]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id JAA29276 for ; Fri, 27 Dec 1996 09:31:39 -0800 (PST) Received: by trinity.radio-do.de (8.7.6/CLIENT-1.2.7-h) via EUnet id SAA00727; Fri, 27 Dec 1996 18:31:29 +0100 (MET) Cc: root To: hackers@freebsd.org Subject: Re: How to run C programs on FreeBSD References: From: Frank Nobis Date: 27 Dec 1996 18:31:28 +0100 In-Reply-To: root's message of Fri, 27 Dec 1996 08:51:08 -0800 (PST) Message-ID: Lines: 24 X-Mailer: Red Gnus v0.74/XEmacs 19.14 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "root" == root writes: root> Recently I purchased FreeBSD Release 2.1.5 and installed on root> my machine for developer package. I tried to run a small root> program hello.c to print on screen. root> After editing hello.c and I compile it as as: gcc -o hello root> hello.c hello root> It supposed to print: Hello World! root> However, the system responded: "Command not found" root> Yung, yung@geoaccess.net As we can see you are the user root. Root has per default the current directory '.' not in his path. Try './hello' Gruß Frank -- Frank Nobis Email: fn@Radio-do.de PGP AVAILABLE Landgrafenstr. 130 dg3dcn http://www.radio-do.de/~fn/ 44139 Dortmund Powered by FreeBSD Fax: +49 231 7213816