LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2005, 03:00 PM   #1
tsmitty
LQ Newbie
 
Registered: Dec 2005
Distribution: Fedora Core 3
Posts: 3

Rep: Reputation: 0
User cant compile with gcc


I just installed Fedora Core 3.When I try to use gcc or any other compiler I get:

/usr/bin/ld: cannot open output file a.out: Permission Denied

any ideas?
Thanks
 
Old 12-21-2005, 03:10 PM   #2
jbetten
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Rep: Reputation: 0
Looks like you don't have write permission in your present working directory...
You can try sending the output from running "pwd" and "ls -al" for more information?
 
Old 12-21-2005, 03:11 PM   #3
ille.pugil42
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 151

Rep: Reputation: 30
Just a guess, does the file a.out already exist in the location you're attempting to compile (i.e. did you compile previously as root in this location and now don't have permissions to remove the file) ? That's about all I can think of on the fly.
 
Old 12-21-2005, 03:19 PM   #4
tsmitty
LQ Newbie
 
Registered: Dec 2005
Distribution: Fedora Core 3
Posts: 3

Original Poster
Rep: Reputation: 0
ahh I'm an idiot. I copied the files from a CD and they were defaulted as non-write files. Just had to change the permissions on all of them.
Will chmod change all the sub directories permissions too, or do I need an extra command??

Thanks!!
 
Old 12-21-2005, 03:21 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
chmod -R
will change all subdir's too.

Cool
 
Old 12-21-2005, 03:24 PM   #6
tsmitty
LQ Newbie
 
Registered: Dec 2005
Distribution: Fedora Core 3
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks a bunch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile GCC 3.3 mullins Linux - Software 1 08-04-2005 07:44 PM
Compile with GCC occ Solaris / OpenSolaris 6 10-29-2004 11:19 AM
gcc can't compile noir911 Programming 1 09-25-2004 11:35 AM
How to compile GCC if you don't have GCC? khermans Linux - Software 13 05-12-2004 07:42 PM
how to compile with gcc 2.95 mu664life Debian 2 04-14-2004 01:08 AM


All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration