SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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.
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.
Distribution: FC3 dualboot with XP on my main machine, Slackware 9 on my POS ;)
Posts: 30
Rep:
Help installing GCC on SuSE 9.1
Hey guys, I'm a total linux and I'm having problems installing GCC. I've downloaded and untarred the package and I try to configure it with the ./configure command but I get this error:
./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/gcc3/gcc-3.4.3/./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
How can I set the environment variable to a working compiler if I don't HAVE a working compiler (hence needing to install GCC)? I'm running a new install of SuSE 9.1 Personal.
Distribution: FC3 dualboot with XP on my main machine, Slackware 9 on my POS ;)
Posts: 30
Original Poster
Rep:
Okay, so I'm gonna have to install it from binary then? Unfortunately I'm pretty sure those files aren't included on my install CD because I have the personal version... Some place on the web I could find them?
Just enter GCC into the search box, scroll down until you find the yellow-hilighted files (the SuSE ones) and get the i586 version, not the src... (and get the first ones - the lower-down ones are for earlier SuSE versions!)
It's just over 1mb. My SuSE 9.1 (presumably yours is the same) has binutils pre-installed, but YaST doesn't list glibc-devel precicely - only plain old glibc. I'm downloading the devel version just to be on the safe side - it's about 6mb. (You need these packages to support GCC.)
I say 'excellent RPM archive' - I haven't installed the package yet. I'll keep you posted.
Sorry if this post seems a bit fragmented - I'm very tired...
EDIT: The RPMs seem to work, although I downloaded a different version of glibc-delev from the glibc I have - so I'm now downloading the compatable glibc (1.4mb)...
I'll let you know if they install OK once I've got it!
EDIT: Arrrrggghh! My Linux *really* doesn't like me trying to install the older version over the newer version, (92, count 'em, 92 conflicts!), so I'm now downloading this: ftp://fr.rpmfind.net/linux/SuSE-Linu....3-97.i686.rpm
which is the new version of glibc-devel (which IS needed on top of ordinary glibc) and which isn't listed on the rpmfind.net search for some reason. I just Googled the exact file name. The page for it no longer exists on the server, but Google had a cached version, and for some reason the RPM is still there. 10.1mb
This post is turning into a blog...
I'm colour-coding my EDITs for ease of reading... and when I've finally got GCC up and working, I'll give a list of files that need downloadig, things that need doing - a general walkthrough to getting this thing installed on SuSE Personal 9.1.
EDIT: Aww... I have cpp-3.3.3-41... it wants 3.3.1-29... I'm going to leave it for the night. All this downloading is annoying over dialup, but it could be worse - I could have a broadband line with a download limit...
Last edited by Napalm Llama; 11-16-2004 at 06:09 PM.
just open a terminal window in the directory you downloaded the files to (make sure there are no spaces in the path, or things will go wrong), and do the following:
Code:
su
<your_root_password>
rpm -i glibc-del-2.3.3-97.rpm
rpm -i gcc-3.3.3-41
exit
exit
And you're done!
[EDIT] ...You can now use the ./configure step of the install process, but chances are you won't be able to use make... please bear with me
I'm going to stop giving these web addresses, because they're all pretty much the same. If you go to the SuSE website, and find the FTP mirrors section (within Downloads), get the mirrow closest to where you are and navigate to your version of SuSE - everything is there in RPMs - it really couldn't be easier. I should also point out that the mirrorservice.org sites are a UK mirror - if you're from elsewhere, I suggest finding a different one.
I bet a load of the more experienced users are having a right old laugh about this thread - "A newbie's struggle to compile something - anything! - from source"
Last edited by Napalm Llama; 11-17-2004 at 04:15 PM.
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
I don't klnow what you are REALLY trying to do.
I suggest you don't resort to Compiling gcc .. it's not necessary .. and could be a problem if you
kernel was compiled with a different version .. so you should use the source mirrors for it.
To install gcc on Personal 9.1 follow the following.
use YaST2
Select to change the source ..
- Select to Add a source
- Add the HTTP or FTP mirror (some how FTP never worked for me)
- in the Source enther the name of the mirror ... like xxx.yyy.zzz
in the folder .. enter the directory suse/whatever----/9.1 (don't point below this)
let it accept the source.
now go to add/remove software on the YAST.
when window opens on the left .. type gcc and let it find all the packages.
click on all the found packages and hit accept and it it will install it.
That's the only sane way .. other ways are way to involved with suse.
Thanks for the reply, but I think I solved the GCC thing myself... but then again I might not have done. I grabbed the latest GCC rpm off the SuSE servers, and also all the extra packages it needed to install. I've not yet come across a configure script with errors that can't be solved by installing new packages... (I'm sure there are plenty out there! )... but it's when i run make that the errors appear. It can't find g++ (even though the configure script uses GCC to compile) and it returns an error 127.
It's the output of make that I quoted in my post just now.
I don't know how much relevance this now has to the original point of the thread, but I think it's worthwhile putting it here, because as far as I can tell this is a problem that anyone with this copy of SuSE is likely to come across, and if they perform a search, it'll be useful for them to have all the answers in one place.
Last edited by Napalm Llama; 11-19-2004 at 03:41 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.