Skip site navigation (1)Skip section navigation (2)
Date:      27 Dec 1996 18:31:28 +0100
From:      Frank Nobis <fn@radio-do.de>
To:        hackers@freebsd.org
Cc:        root <root@geo.geoaccess.net>
Subject:   Re: How to run C programs on FreeBSD
Message-ID:  <ygek9q3vqq7.fsf@trinity.radio-do.de>
In-Reply-To: root's message of Fri, 27 Dec 1996 08:51:08 -0800 (PST)
References:  <Pine.LNX.3.93.961227083917.1127A-100000@geo.geoaccess.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "root" == root  <root@geo.geoaccess.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygek9q3vqq7.fsf>