Click to See Complete Forum and Search --> : Gcc installation how to???


Mr Myaghi
11-13-2001, 02:28 PM
I have gcc 3.0. I have uncompressed it (gzip, tar) and it has made some subdirectories. Now what. Do I need any other compiler to compile it? I read somewhere I should use GNU compiler. I got gcc cause I don't seem to have a compiler. I'm totally lost here, can someone help. (I probably don't have to point out I'm a pathetic newbie :-)

ph34r
11-13-2001, 03:15 PM
Is there a INSTALL file, or QUICKSTART, or README? All good places to look on getting it installed...

BTW - the one time I installed gcc from source, I was following the LFS howto at www.linuxfromscratch.org (http://www.linuxfromscratch.org)

Mr Myaghi
11-13-2001, 03:41 PM
The problem seems that there is no compiler in the system. I've downloaded GNU make which the readme file tells me to (gcc) but I can't install that either since I have no compiler. It's a catch 22 situation. To be able to compile I need a compiler but to get a compiler I have to already have a compiler. Besides, I'm having alot of trouble understanding the gcc manual (not intented for newbies like me).

thedexman
11-13-2001, 04:19 PM
What distribution do you have? Most likely you will be able to find prepackaged binaries from your vendor.

[ 13 November 2001: Message edited by: thedexman ]

Mr Myaghi
11-13-2001, 04:43 PM
I'm using mandrake 8.1. I agree there must be some stuff already there, but where. I can't find any. There's probably some linkage problem (ln -s ...... ...). How to I find the compiler?

shaggie
11-13-2001, 07:11 PM
MD 8.1 comes ready shipped with GCC 2.96.
A slight problem with this is that it is duff and has quite a few bugs.

I'm having the same problem upgrading to version 3.01. You have to make sure that you download all the other dependency RPM's also.

Have a look at http://www.rpmfind.net/linux/rpm2html/search.php
you may find this helpful. It lists all the required dependencies.
I must admit, I'm a bit bewildered. I wish someone would come up with an idea for installing all this stuff automatically. If linux were a bit more user friendy, we might just crack the big BG.

Dave

Mr Myaghi
11-15-2001, 08:02 AM
I went to the package manager and uninstalled the gcc there. I then downloaded gcc as rpm and installed. I also installed gnu make rpm and all other needed. When I try to configure a program it goes fine at first, but when it's gonna check the compiler it says:

checking for gcc... gcc
checking wether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables