LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help with GCC (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-gcc-22033/)

Ryan_Sutton 05-28-2002 07:57 PM

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

neo77777 05-28-2002 09:59 PM

get the rpm from http://www.rpmfind.net
look there for gcc, you can also install it from the distro's CD.

Ryan_Sutton 05-28-2002 10:44 PM

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

Noerr 05-29-2002 01:54 AM

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

MasterC 05-29-2002 07:21 AM

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.

Ryan_Sutton 05-29-2002 10:22 AM

Thanks everyone for the help, I got it working and compiled my first program :)

Noerr 05-29-2002 12:35 PM

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


All times are GMT -5. The time now is 05:42 PM.