From owner-freebsd-questions Wed Mar 5 10: 8:31 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5309D37B401 for ; Wed, 5 Mar 2003 10:08:30 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 0E5FE43F75 for ; Wed, 5 Mar 2003 10:08:26 -0800 (PST) (envelope-from mwm-dated-1047319705.113051@mired.org) Received: (qmail 48025 invoked from network); 5 Mar 2003 18:08:25 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 5 Mar 2003 18:08:25 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15974.15640.660862.70505@guru.mired.org> Date: Wed, 5 Mar 2003 12:08:24 -0600 To: sergey dyshel Cc: freebsd Subject: Re: How can I completely replace gcc installed by default with new gcc-3.2? In-Reply-To: <20030305132343.69337.qmail@web41207.mail.yahoo.com> References: <20030305132343.69337.qmail@web41207.mail.yahoo.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.70 (Pensive) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In <20030305132343.69337.qmail@web41207.mail.yahoo.com>, sergey dyshel typed: > Hi > > As I know, FreeBSD 4.7 installed gcc-29.5 on my system > by default (not as package but as part of base > system). When I installed gcc-3.2.1 from binary > package I noticed that it didn't overwrote lib and > include files > in /usr but instead put the in > /usr/local/lib/gcc-lib/i386..../3.2.1". > > Why? How can I force it to install gcc in normal way? You don't want to do that. It'll break building the system. The commands installed in /usr/local/bin will use the correct libraries and include files. Just use those. You can just symlink gcc32 to cc in /usr/local/bin, and make sure that /usr/local/bin is in front of /usr/bin in your path. Things that use cc will use gcc32, and everything will work pretty much like you want. If you're willing to run code on a development branch - which means it's more likely to fail in strange ways, and there'll be less help available when it does - you can upgrade to FreeBSD 5.0, which uses gcc3 in place of 2.95. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message