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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
05-03-2004, 02:49 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13
Rep:
|
How to configure GCC?
Hi All
I've a problem elsewhere on this forum (unable to use rpm). However, rather than trying to fix this, I want to try and install GCC (which was the point of the rpm problem in the first place).
How do I configure GCC when I need a CC to configure it with? What do I need to ./configure GCC?
Thnx. 
|
|
|
05-03-2004, 03:44 PM
|
#2
|
LQ Newbie
Registered: May 2004
Distribution: Fedora
Posts: 5
Rep:
|
If I understand your question correctly, you don't have a C compiler available to you, but you want to build GCC from source.
Clearly without a C compiler, you will not be able to compile GCC from source, and no amount of setting of CC will help. Get yourself a binary distribution of GCC, then use that for compiling GCC.
My first recommendation is to fix your installation. Re-install your distribuition. I don't know how you got yourself to where you have a system, but no compiler. My guess is that it's likely that other things are broken as well.
Another thing you might do is to obtain a rescue CD that has a compiler on it, boot from it, and then compile GCC. You will have to set various command-line options like srcdir anud builddir correctly. Read the install README and use './configure --help' to find out more.
There are many rescue CDs out there. Googling for, say, "Linux rescue CD" should provide plenty of links, or you may check http://freshmet.net .
|
|
|
05-03-2004, 03:51 PM
|
#3
|
Member
Registered: Jan 2004
Location: Utah USA
Distribution: SuSE Pro 9.0
Posts: 43
Rep:
|
Why don't you just download the precompiled binaries for your system. You can get them here: http://gcc.gnu.org/install/binaries.html
To compile the GCC it is assumed you have a commercial C compiler already installed which is something of a recursive pain in the neck.
Of course, your distrobution came with the compiler on the disk image. If you did not choose to modify the default software list during installation then it was not installed. Open YaST -> Software ->Install and Remove Software. Search for GCC or filter for Package Groups and find it under development.
|
|
|
05-03-2004, 04:05 PM
|
#4
|
LQ Newbie
Registered: May 2004
Distribution: Fedora
Posts: 5
Rep:
|
Ah ha! I googled for "GCC binary distribution" and didn't find the link you suggested. But "GCC binaries distribution" does bring it up as the first entry.
|
|
|
05-04-2004, 03:03 AM
|
#5
|
LQ Newbie
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13
Original Poster
Rep:
|
Hi fellas. Thanks for the info.
Like I said, the binaries don't want to install (RPM is not functioning correctly). I presume rpm is the only way to install a binary? (Noob indicator right there!  )
The distro of SuSE was from a magazine, and very much cut down. Hence, no GCC.
Looks like a new install then?
|
|
|
05-04-2004, 03:15 AM
|
#6
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
RPM is not the only way but if you're using a distro that's built on rpms you better stick with it.
what error messages are you getting?
Last edited by Demonbane; 05-04-2004 at 03:17 AM.
|
|
|
05-04-2004, 03:20 AM
|
#7
|
LQ Newbie
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13
Original Poster
Rep:
|
None unfortunately, it simply doesn't do anything if I rpm -iv or use YaST. Thinks about it for a few seconds then goes back to what it was originally doing... i.e. if in the command line, will just go back to the cursor, no info, no error messages. I've check to see if it installed anything with rpm -q blah.rpm but nope, not installed.

|
|
|
05-04-2004, 03:22 AM
|
#8
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
what happens when you type "rpm -qa" ?
|
|
|
05-04-2004, 03:33 AM
|
#9
|
Member
Registered: Mar 2004
Location: Somerset, UK
Distribution: Zenwalk Current & Ubuntu Feisty
Posts: 61
Rep:
|
Quote:
Originally posted by co2
The distro of SuSE was from a magazine, and very much cut down. Hence, no GCC.
Looks like a new install then?
|
Hey, I just got distro of SuSe 9.0 from a magazine (probably the same one!) and I've noticed the distinct lack of GCC and annoyingly an extreme lack of a decent window manager.
Once I get the chance I'm gonna have a long play with it to try get it working to my liking. I'll let you know how I get on.
|
|
|
05-04-2004, 03:51 AM
|
#10
|
LQ Newbie
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13
Original Poster
Rep:
|
Cheers Niteskye... I presume you got the 2 x CD distro from LinuxUser? They do make apologise for not including everything. It'd be alright if my rpm or YaST was functioning correctly... does your YaST update work okay?
As for the rpm -qa, Demonbane... nope, nothing. Again, it thinks about it, but it just goes onto the command line cursor again without any feedback.
|
|
|
05-04-2004, 04:10 AM
|
#11
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
Try doing any rpm operation with -vv option, that should give you some debug messages
if you want to try installing the rpm without going through the rpm engine you can do this:
Code:
cd /
rpm2cpio /path/to/gccrpm.rpm | cpio -idv
that will extract files from the rpm to your file system, but it won't check for dependencies therefore GCC may or may not work properly.
Last edited by Demonbane; 05-04-2004 at 04:12 AM.
|
|
|
05-04-2004, 04:16 AM
|
#12
|
LQ Newbie
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13
Original Poster
Rep:
|
Nope, didn't help I'm afraid... extract all the files to the directory. If I try to configure something, still get he GCC no installed message.
|
|
|
05-04-2004, 04:29 AM
|
#13
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
gcc is properly not in the standard path, see if "whereis gcc" returns anything
|
|
|
05-04-2004, 04:35 AM
|
#14
|
LQ Newbie
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13
Original Poster
Rep:
|
Nope, nothing. Just...
gcc:
|
|
|
05-04-2004, 04:38 AM
|
#15
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
can you tell me where you get the RPM from?
|
|
|
All times are GMT -5. The time now is 03:20 AM.
|
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
|
|