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. :) |
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 . |
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. |
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.
|
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? |
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? |
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.
:( |
what happens when you type "rpm -qa" ?
|
Quote:
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. |
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. |
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 / |
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.
|
gcc is properly not in the standard path, see if "whereis gcc" returns anything
|
Nope, nothing. Just...
gcc: |
can you tell me where you get the RPM from?
|
It's not the rpm I think that is at fault, I can't rpm anything :(
It's the SuSE 9.0 rpm. |
yea i know, justed want to see where it installs the binaries
make sure its gcc-3.3.1-29.i586.rpm, and that you executed the rpm2cpio command as root in the root directory ( / ) you also need binutils and glibc-devel installed |
Ah binutils... can't install that for the same reasons!
|
|
"Make" doesn't seem to exist in SuSE 9 in that it appears to conflict with some of the gcc packages already installed. My distro, via FTP, shows that they are installed but "make" is nowhere to be found.
The reason for this appears to be that the 'make' command is replaced in SuSE with "pkgmake". Type "pkgmake info" for more information. Here are the switches: pkgmake extract package pkgmake compile package pkgmake install package pkgmake diff package pkgmake remove package Hope this helps. I'm a newbie too. |
All times are GMT -5. The time now is 11:43 AM. |