Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 1995 10:35:42 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        lalas@db.erau.edu (#3)
Cc:        questions@FreeBSD.org
Subject:   Re: FreeBSD2.0.5
Message-ID:  <199512071735.KAA05077@phaeton.artisoft.com>
In-Reply-To: <Pine.A32.3.91.951206193424.13514A-100000@plant.ent.db.erau.edu> from "#3" at Dec 6, 95 07:42:09 pm

next in thread | previous in thread | raw e-mail | index | archive | help
>   I am a student at Embry Riddle Aeronautical University doing a project 
> that requires me to install FreeBSD on a PC that is not networked.  I 
> have gone through the installation process and am required to compile a 
> program using the cc or gcc command.  When I do this it gives me the 
> warning ld: a.out permission denied.  If I do this from root it does 
> create the a.out file but it is not executable.  I really need help on 
> this situation as I am required to present this to my instructor by 
> tomorrow evening.  I did install the manpages and installation was 
> completed to 100% but was then given the warning that there was a Write 
> Failure, the disks were reformatted and done again but still the same 
> warning was given.  I would also like to know how I may install some of 
> the other files such as games, info,....etc, without having the 
> installation menu.  Your promptness and help will greatly be appreciated 
> as I only have a limited time to fix this problem.  One note about the 
> a.out file, I did try to change the mode to 700 to make it executable but 
> it was not recognized.

If you are root, '.' is not in your path.  So you probably got:

	a.out: Command not found.

from typing:

	a.out

Try typing:

	./a.out

instead.


The "permission denied" error probably means that the user ID you are
logged in as does not have write permission to the directory, or there is
already a file called "a.out" -- probably the one you created as root.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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