PDA

View Full Version : Touble installing gcc


Enigma 2100
2006-10-04, 09:48 AM CDT
When I try to install gcc compiller I get this error

[root@localhost Desktop]# rpm -i gcc-4.1.1-1.fc5.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[root@localhost Desktop]#


How do I get round this cannot create sourcedir eror. I am an absolute linux begginer.

Bachmann
2006-10-04, 09:53 AM CDT
When I try to install gcc compiller I get this error

[root@localhost Desktop]# rpm -i gcc-4.1.1-1.fc5.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[root@localhost Desktop]#


How do I get round this cannot create sourcedir eror. I am an absolute linux begginer.
why not just do

yum install gcc

You can also do this with a gui.

Applications-- add/remove software -- then cick on development --- then check development tools and hit apply.

good luck,
-Bachmann

Enigma 2100
2006-10-04, 10:28 AM CDT
why not just do

yum install gcc

You can also do this with a gui.

Applications-- add/remove software -- then cick on development --- then check development tools and hit apply.

good luck,
-Bachmann
Thanks for replying

What is obvious to you is not known to me. I am a beginner to linux as in I only installed it two days ago. Things which are obvious to you go right past me. Any idea why it gave the error in the first place?

Bachmann
2006-10-04, 11:35 AM CDT
Thanks for replying

What is obvious to you is not known to me. I am a beginner to linux as in I only installed it two days ago. Things which are obvious to you go right past me. Any idea why it gave the error in the first place?

Well, I meant no offense, sorry about that.

Actually as far as the error I am not too sure really.

Here are some places to learn more btw.
http://www.fedorafaq.org/
http://stanton-finley.net/fedora_core_5_installation_notes.html

-Bachmann

lazlow
2006-10-04, 02:00 PM CDT
Enigma

You were aware that you were trying to install a source rpm? The .src indicate source rather than executable. Do not get too worried about being a newbie. Give yourself at least six months to get your linux legs. Some stuff will come very easily but other stuff you may need a 2x4 to get through. None of it is all that hard. At least when you understand how that particular section of linux you are dealing with works, the hard part.

google is a friend.

Lazlow