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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
11-03-2009, 07:55 AM
|
#1
|
|
Member
Registered: Jun 2009
Posts: 106
Rep:
|
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
|
|
|
|
11-03-2009, 08:09 AM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
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.
|
|
|
|
11-03-2009, 08:14 AM
|
#3
|
|
Member
Registered: Jun 2009
Posts: 106
Original Poster
Rep:
|
Quote:
Originally Posted by Wim Sturkenboom
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
|
|
|
|
11-03-2009, 08:58 AM
|
#4
|
|
Member
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568
Rep:
|
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
|
|
|
|
11-03-2009, 09:28 AM
|
#5
|
|
Member
Registered: Oct 2009
Posts: 451
Rep: 
|
Quote:
Originally Posted by malickhat
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
|
|
|
|
11-03-2009, 09:44 AM
|
#6
|
|
Member
Registered: Jun 2009
Posts: 106
Original Poster
Rep:
|
Quote:
Originally Posted by JohnGraham
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
|
|
|
|
11-03-2009, 10:28 AM
|
#7
|
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005
Rep:
|
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.
|
|
|
|
11-03-2009, 10:59 AM
|
#8
|
|
Member
Registered: Jun 2009
Posts: 106
Original Poster
Rep:
|
Quote:
Originally Posted by r3sistance
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
|
|
|
|
11-03-2009, 11:07 AM
|
#9
|
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005
Rep:
|
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.
|
|
|
|
11-03-2009, 10:09 PM
|
#10
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
In which case running locate gcc can find it.
|
|
|
|
11-04-2009, 03:27 AM
|
#11
|
|
Member
Registered: Oct 2009
Posts: 451
Rep: 
|
Quote:
Originally Posted by malickhat
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
|
|
|
|
11-04-2009, 03:36 AM
|
#12
|
|
Member
Registered: Jun 2009
Posts: 106
Original Poster
Rep:
|
Quote:
Originally Posted by Wim Sturkenboom
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
|
|
|
|
11-04-2009, 05:39 AM
|
#13
|
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780
|
No compiler installed, only some libraries. As said, use the package management (no RH user, so can't help further).
|
|
|
|
11-04-2009, 12:28 PM
|
#14
|
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005
Rep:
|
Quote:
Originally Posted by malickhat
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.
|
|
|
|
11-04-2009, 02:31 PM
|
#15
|
|
Member
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568
Rep:
|
Quote:
Originally Posted by r3sistance
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:59 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|