From owner-freebsd-questions Thu Nov 9 14:46:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gw.carpoolbc.com (cr45465-a.abtsfd1.bc.wave.home.com [24.113.176.126]) by hub.freebsd.org (Postfix) with ESMTP id 8B5C337B4C5 for ; Thu, 9 Nov 2000 14:46:20 -0800 (PST) Received: from localhost (roop@localhost) by gw.carpoolbc.com (8.9.3/8.9.3) with ESMTP id OAA11229; Thu, 9 Nov 2000 14:45:32 -0800 (PST) (envelope-from roop@gw.carpoolbc.com) Date: Thu, 9 Nov 2000 14:45:27 -0800 (PST) From: Roop Nanuwa To: Duy Luong Cc: freebsd-questions@FreeBSD.ORG Subject: Re: your mail In-Reply-To: <20001109053156.27386.qmail@web4702.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 8 Nov 2000, Duy Luong wrote: > Hi. I got a problem. After finishing installation > Freebsd 4.1.1 and some packages including devel etc, I > could not run the a.out file after I compiled the c++ > file. The message is a.out command not found, even > the a.out file is existed. Tell me how to solve this > problem. Thanks you. After compiling, there are two thing you need to make sure: 1] Change the file attributes to executable 2] Make sure the dir. is in your path If your compiled file is not in a dir that's part of your path, the system won't find it just like that.. you have to fully qualify it's location.. so instead of just running it by: %> a.out you have to do this: %>./a.out Hope that helps, RSN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message