LinuxQuestions.org
Review your favorite Linux distribution.
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 05-28-2002, 08:57 PM   #1
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Rep: Reputation: 15
Help with GCC


Hello, I am trying to install the C compiler on my Red Hat 7.2 computer. I read the GNU.GCC page a few times but the install it recomended wouldn't work, I couldn't even get past the "configure" stage. I am using the i386 ver of Redhat with a Pentium 200 MMX and 64 M of Ram. If anyone could tell me where there is some 'newbie' documentation on configuring and building the GCC C Compiler Ver 2.96 I would appreciate it
 
Old 05-28-2002, 10:59 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
get the rpm from http://www.rpmfind.net
look there for gcc, you can also install it from the distro's CD.
 
Old 05-28-2002, 11:44 PM   #3
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Original Poster
Rep: Reputation: 15
I have the RPM on my distro CD, however I cannot simply rpm -i it, it says that it needs other files to be installed. Also, after looking at the gnu gcc web page it appears that you have to create an objdir and a srcdir and then configure the dir's or somthing close to that. Is there another C compiler that I can simply unpack and start using? Thanks for your input
 
Old 05-29-2002, 02:54 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
compiling new gcc can cause troubles, ie redhat using 2.96 while gcc3.1 + is also available.
Unless you have a strong reason to compile a new one stick with distro version.
and get all dependencies and then rpm
 
Old 05-29-2002, 08:21 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
yeah, I think you need header files and a few others, they are all on your CD. I ran into that problem too once, I did what Noerr said, and it works like a charm now. Oh and BTW, you should go for the 3.x one instead of 2.9x since some programs don't like the 2.9x version for some reason.
 
Old 05-29-2002, 11:22 AM   #6
Ryan_Sutton
Member
 
Registered: May 2002
Location: California
Distribution: Fedora 9
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks everyone for the help, I got it working and compiled my first program
 
Old 05-29-2002, 01:35 PM   #7
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
MasterC:
I think that RH went back to their 2.96 version in RH7.3 distro, whereas in rh 7.2 they included gcc3 as a seperate version and not linked to gcc.
So I guess it's problematic for them

I remember quite some progs, recomending gcc 2.96 for compiling
 
  


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
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 11:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 05:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM


All times are GMT -5. The time now is 09:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration