LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-28-2004, 10:29 AM   #1
Jeff_G_1974
LQ Newbie
 
Registered: Feb 2003
Location: Belleville, Ontario, Canada
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
Installing a GCC-compiler


Greetings,

Ok, I'm slowly learning my way around Linux and so far, it has been alright (other than the other night when I ended up having to reinstall Fedora because I did the required updates and the updates crashed my system). Anyways, I'm avoiding the updates for the next little while, but I'm having an issue trying to install the tar.gz files for Window Maker and Black Box. It turns out the errors were because there wasn't a c compiler installed and I need to install one. So, I've downloaded the RPM for GCC and when I try to install it, I get the error listed below:

error: cannot create %sourcedir /usr/src/redhat/SOURCES

Now, I've tried installing as both a user and root and I'm still getting the same error. Now, am I going to have to manually create the directory or is there something wrong that I'm not doing. When I try to run the rpm command, I'm running rpm -ivh gcc* and the file that I'm trying to install is gcc-3.3.2-6.src.rpm. Now, I've also read that because it is a source file, that I have to run RPMBUILD, but that command doesn't exist. Once again, I apologize if I'm asking too many questions. I even read the man pages on RPM and couldn't find the command RPMBUILD either.
 
Old 02-28-2004, 03:36 PM   #2
SuperCoolAl
Member
 
Registered: Feb 2004
Posts: 89

Rep: Reputation: 15
u need to run

Code:
rpm -ivh <<PATHTOGCCBINARY>>
in other words u need to point rpm to the exact location and filename of ure binary or it might try to install something else

hope this helps

Last edited by SuperCoolAl; 02-28-2004 at 03:38 PM.
 
  


Reply



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
Installing another gcc compiler in mandrake 10.0 lbabey Linux - Software 8 03-31-2005 05:22 PM
GCC compiler .. pashupathinath Programming 1 10-21-2004 12:20 PM
Installing Gcc (it requires a compiler) funkatron Linux - Software 2 09-25-2004 10:38 AM
installing devel-packages and gcc-compiler supersucker Linux - Software 1 08-30-2004 10:18 PM
GCC compiler? Forezt Linux - Newbie 2 11-23-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:00 PM.

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
Open Source Consulting | Domain Registration