LinuxQuestions.org
Help answer threads with 0 replies.
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 05-03-2004, 02:49 PM   #1
co2
LQ Newbie
 
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13

Rep: Reputation: 0
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.
 
Old 05-03-2004, 03:44 PM   #2
vivanovic
LQ Newbie
 
Registered: May 2004
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
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 .
 
Old 05-03-2004, 03:51 PM   #3
gregaryh
Member
 
Registered: Jan 2004
Location: Utah USA
Distribution: SuSE Pro 9.0
Posts: 43

Rep: Reputation: 15
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.
 
Old 05-03-2004, 04:05 PM   #4
vivanovic
LQ Newbie
 
Registered: May 2004
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
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.
 
Old 05-04-2004, 03:03 AM   #5
co2
LQ Newbie
 
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0
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?
 
Old 05-04-2004, 03:15 AM   #6
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.
 
Old 05-04-2004, 03:20 AM   #7
co2
LQ Newbie
 
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0
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.

 
Old 05-04-2004, 03:22 AM   #8
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
what happens when you type "rpm -qa" ?
 
Old 05-04-2004, 03:33 AM   #9
Niteskye
Member
 
Registered: Mar 2004
Location: Somerset, UK
Distribution: Zenwalk Current & Ubuntu Feisty
Posts: 61

Rep: Reputation: 15
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.
 
Old 05-04-2004, 03:51 AM   #10
co2
LQ Newbie
 
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 05-04-2004, 04:10 AM   #11
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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.
 
Old 05-04-2004, 04:16 AM   #12
co2
LQ Newbie
 
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 05-04-2004, 04:29 AM   #13
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
gcc is properly not in the standard path, see if "whereis gcc" returns anything
 
Old 05-04-2004, 04:35 AM   #14
co2
LQ Newbie
 
Registered: Jun 2003
Location: UK
Distribution: Suse
Posts: 13

Original Poster
Rep: Reputation: 0
Nope, nothing. Just...

gcc:
 
Old 05-04-2004, 04:38 AM   #15
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
can you tell me where you get the RPM from?
 
  


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
Problems with ./configure and gcc tur third Linux - Software 3 08-04-2005 03:11 AM
Error ./Configure GCC 3.4.4 D1G1T477 Linux - General 1 06-21-2005 10:29 AM
can't configure - gcc problem? dhave Slackware 11 11-16-2004 11:24 AM
gcc configure error rl5 Linux From Scratch 2 03-31-2004 09:18 AM
How to I configure gcc on Solaris ehsan Solaris / OpenSolaris 5 01-08-2003 12:18 PM


All times are GMT -5. The time now is 08:29 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