From owner-freebsd-questions Sat May 31 22:51:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA07829 for questions-outgoing; Sat, 31 May 1997 22:51:52 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA07822 for ; Sat, 31 May 1997 22:51:47 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.8.5/8.8.5) id AAA00168; Sun, 1 Jun 1997 00:51:18 -0500 (EST) From: "John S. Dyson" Message-Id: <199706010551.AAA00168@dyson.iquest.net> Subject: Re: a.out programs are not executable! cant run any programs.. In-Reply-To: <3390380B.6A28@crl.com> from Andrejs Vanags at "May 31, 97 09:40:04 am" To: andrejs@crl.com Date: Sun, 1 Jun 1997 00:51:17 -0500 (EST) Cc: freebsd-questions@FreeBSD.ORG Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Hi, I just bought FreeBsd 2.2.1 from Walnut Creek Cdrom. > > I installed it and even recomplied the kernel with no problems. > However if I try to compile a simple hello.c program with gcc, the > result is a.out. If I type a.out it says command not found. If I say > file a.out it says it is a: > BSD/i386 compact demand paged dynamically linked executable not > stripped. If I do file gcc it says the same but without the not stripped > part, so I recompiled gcc -s hello.c, got a.out and still doesnt work. > Of course, you will likely have to type "./a.out". The other trick is to be careful about naming your program "test". The shell often uses that as a builtin command name :-). That one still gets me once in a while :-). John