LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install c compiler (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-c-compiler-210542/)

albanas 07-28-2004 06:57 AM

how to install c compiler
 
I have SME 6.01 (redhat based). I need to install c compiler. How to do this? Thanks.

jkobrien 07-28-2004 07:18 AM

You might have it already, as that's a pretty standard part of most distributions.

Type "which gcc" to find out.

John

albanas 07-28-2004 07:34 AM

I think I dont:


[root@bankas root]# which gcc
/usr/bin/which: no gcc in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

and I had error that says I have no c compiler.

jkobrien 07-28-2004 08:56 AM

Ok, if SME is redhat-based you could try the RPM repository or you can get the sources directly from the gcc homepage.

John

leadazide 07-28-2004 09:08 AM

I'm not well informed about different distros, so I've never heard of SMI, sorry Since you say it's redhat based, it must be able to handle rpms. If you installed it from a cd, gcc MUST be on this cd as well. If not, search e. g. on rpmfind.net a rpm for gcc, download and install with

rpm -i gcc-3.X.X-X.X.X-iX86.rpm



[removed]


here's a quick result of the search, this one is for Fedora Core 2, it should work, if not try an RPM for mandrake or suse.

*edit*
sorry, no binary posts

ajwsurfer 12-25-2004 02:31 AM

Get the RPMS
 
You need to get the RPMs from: ftp://ftp.redhat.com/pub/redhat/linu...6/RedHat/RPMS/

I haven't looked into which ones that are needed specifically, but here are some more source pages, courtesy of www.isolinux.org:

ftp://ftp.sunet.se/pub/Linux/distrib...hat/linux/7.3/
ftp://distro.ibiblio.org/pub/linux/d...ns/redhat/7.3/
ftp://ftp.proxad.net/pub/Distributio...hat/linux/7.3/
ftp://gd.tuwien.ac.at/pub/linux/redh...ist/linux/7.3/
ftp://sunsite.ms.mff.cuni.cz/MIRRORS...hat/linux/7.3/
ftp://ftp.dc.aleron.net/pub/linux/re...com/linux/7.3/


All times are GMT -5. The time now is 07:49 PM.