GCC: where to compile it

Bill Campbell bill
Mon May 17 11:44:51 PDT 2004


On Wed, Feb 26, 2003 at 08:13:06PM -0500, Kurt Wall wrote:
>Feigning erudition, Joel Hammer wrote:
>%  I have downloaded the sources for gcc-2.95.3   
>%  
>%  I want to compile this thing, and it seems to config OK and make ok.
>%  I am totally confused on where this should go. The instructions from the
...
>For example:
>
>$ gzip -cd gcc-2.95.3.tar.gz | tar -xf -
>$ mkdir builddir
>$ cd builddir
>$ ../gcc-2.95.3/configure --prefix=/usr/local
>$ make bootstrap
>$ su 
>Password:
># make install

I think there is an option when compiling to do it in a private directory
so that it doesn't conflict with the system's installed compilers.  You can
break a lot of things on a LInux system by replacing gcc (notably most perl
modules are very dependent on the compiler, libraries, etc.).

There's been some discussion of this on the openpkg developers list in the
last few days started when somebody asked why their perl RPMS are dependent
on gcc.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``When dealing with any spammer, one must always keep in mind that you
are dealing with someone who makes their living through forgery, fraud,
theft, subterfuge and obfuscation.  Stated simply, spammers lie.''
     David Ritz <dritz at primenet.com>


More information about the Linux-users mailing list