LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-03-2009, 07:55 AM   #1
malickhat
Member
 
Registered: Jun 2009
Posts: 106

Rep: Reputation: 15
Gcc Installation problem


Hi,
Everytime when i use ./configure for my install it says no C compiler is installed ,so i've downloaded Gcc-4.4.2 and extracted it and again i found that it needs C compiler to .is there any way for me to install the Gcc in my machine.i'll paste some output in my terminal
Code:
-bash: gcc: command not found
Code:
cat /proc/version 
Linux version 2.6.18-53.el5 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Oct 10 16:34:02 EDT 2007
Hope this will make some extra information for you guys
 
Old 11-03-2009, 08:09 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
You need a C-compiler to compile the compiler.

Use the package manager of your distro (RH or derivate I assume) to install one. It's the easiest.
 
Old 11-03-2009, 08:14 AM   #3
malickhat
Member
 
Registered: Jun 2009
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Wim Sturkenboom View Post
You need a C-compiler to compile the compiler.

Use the package manager of your distro (RH or derivate I assume) to install one. It's the easiest.
You mean RPM , i tried that too lot of dependencies needed it's too hard for me , i used yum also but no use
 
Old 11-03-2009, 08:58 AM   #4
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
What exactly is your distribution? Is it Redhat, or something else?

If yum finds lots of dependencies, it usually means those are missing, or you need new versions of those packages. So again it is far easier to install those dependencies with yum. There are graphical alternatives that might make the whole process easier. E.g. Synaptic or Yumex. Which one is available on your system depends on exactly which distribution you have.

Mons
 
Old 11-03-2009, 09:28 AM   #5
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by malickhat View Post
You mean RPM , i tried that too lot of dependencies needed it's too hard for me , i used yum also but no use
Have you tried just running "sudo yum install gcc"?

John G
 
Old 11-03-2009, 09:44 AM   #6
malickhat
Member
 
Registered: Jun 2009
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JohnGraham View Post
Have you tried just running "sudo yum install gcc"?

John G
I'm running my system as root ,so their is no need for sudo i think ,but i tried it .still it says No argument find and i'm using rpmforge as my repos
 
Old 11-03-2009, 10:28 AM   #7
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Try running the following command and see if they error

gcc -dumpversion
or
gcc --version

If gcc is correctly installed those two commands should work in any directory, you can also just try 'gcc' and seeing if it complains about no input file or not.

Also RPMforge won't have gcc to my knowledge, there is no need for it, the distributions official repositories should be hosting gcc. So the question of what distribution is rather important here.

Last edited by r3sistance; 11-03-2009 at 10:33 AM.
 
Old 11-03-2009, 10:59 AM   #8
malickhat
Member
 
Registered: Jun 2009
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by r3sistance View Post
Try running the following command and see if they error

gcc -dumpversion
or
gcc --version

If gcc is correctly installed those two commands should work in any directory, you can also just try 'gcc' and seeing if it complains about no input file or not.
As i stated Early gcc command is not recognized in my shell

Code:
 gcc -dumpversion
-bash: gcc: command not found
 
Old 11-03-2009, 11:07 AM   #9
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
What distribution are you using? RPMforge won't have gcc on it's yum reposistories?

If your using RHEL you maybe out of luck as this sounds like one of the things Red Hat do with RHEL to make people have to pay for their support licenses... and those aren't cheap. At best your only chance might be that gcc is installed but just does not appear in any of the directories that are in $PATH...

Last edited by r3sistance; 11-03-2009 at 11:08 AM.
 
Old 11-03-2009, 10:09 PM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
In which case running locate gcc can find it.
 
Old 11-04-2009, 03:27 AM   #11
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by malickhat View Post
I'm running my system as root ,so their is no need for sudo i think ,but i tried it .still it says No argument find and i'm using rpmforge as my repos
Have you just installed Linux? Try running "yum update" (I think that's how you update yum!) and then "yum install gcc" again.

If you get error messages, please cut & paste the output - most of the time it's much more helpful than a description of what went wrong!

John G
 
Old 11-04-2009, 03:36 AM   #12
malickhat
Member
 
Registered: Jun 2009
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Wim Sturkenboom View Post
In which case running locate gcc can find it.
I did it and i found this
Code:
ls /usr/lib/gcc/i386-redhat-linux6E/4.3.2/
libstdc++.a  libstdc++_nonshared.a  libstdc++.so  libsupc++.a
any improvements ,by the way i'm using RHEL5
 
Old 11-04-2009, 05:39 AM   #13
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
No compiler installed, only some libraries. As said, use the package management (no RH user, so can't help further).
 
Old 11-04-2009, 12:28 PM   #14
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Quote:
Originally Posted by malickhat View Post
any improvements ,by the way i'm using RHEL5
You are either going to have to pay for a RHEL license or switch to another distribution. The official RHEL repositories are only usable if you are paying for a support license from RHEL, if your lucky you might be able to find an unofficial repository but I wouldn't trust it.

If you don't want to pay the $80 per year charge for a RHEL the basic RHEL desktop or $349 per year charge for the basic level RHEL server I'd advise switching to CentOS, it's a near clone of RHEL and completely free.

If you do decide to pay the command you need to run is "yum install gcc" and accept anything it wants to download.

Last edited by r3sistance; 11-04-2009 at 12:30 PM.
 
Old 11-04-2009, 02:31 PM   #15
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Quote:
Originally Posted by r3sistance View Post
You are either going to have to pay for a RHEL license or switch to another distribution. The official RHEL repositories are only usable if you are paying for a support license from RHEL, if your lucky you might be able to find an unofficial repository but I wouldn't trust it.

If you don't want to pay the $80 per year charge for a RHEL the basic RHEL desktop or $349 per year charge for the basic level RHEL server I'd advise switching to CentOS, it's a near clone of RHEL and completely free.

If you do decide to pay the command you need to run is "yum install gcc" and accept anything it wants to download.
I agree.

Whats you purpose for this machine? Home desktop? Server? Developing anything specific?
If you want to stay close to RHEL, go for Centos. If its more a home/hobby thing have look at any of the distros in the top 5-10 available from the "main menu" ->"download linux" here on LQ.

Continuing with RHEL without access to their repository is going to be far too much trouble.

Mons
 
  


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 installation problem cresloga Linux - Software 1 03-28-2008 12:26 PM
gcc installation problem ajaytiwary Linux - Newbie 8 10-18-2007 06:45 AM
Problem in gcc installation gurl4sh25 Solaris / OpenSolaris 3 08-08-2007 10:52 AM
GCC installation problem nicky43 Linux - Software 3 07-22-2006 05:59 AM
Gcc installation problem Agileuk Linux - Newbie 2 09-28-2003 06:11 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration