From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MKyn6-0007P0-Kp for garchives@archives.gentoo.org; Sun, 28 Jun 2009 18:07:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEA0FE06B2; Sun, 28 Jun 2009 18:07:47 +0000 (UTC) Received: from fitzgerald.ucs.mun.ca (fitzgerald.ucs.mun.ca [134.153.232.57]) by pigeon.gentoo.org (Postfix) with ESMTP id 85E41E06B2 for ; Sun, 28 Jun 2009 18:07:47 +0000 (UTC) Received: from minnie.esd.mun.ca (minnie.esd.mun.ca [134.153.36.8]) by fitzgerald.ucs.mun.ca (8.13.1/8.13.1) with ESMTP id n5SI7kfS017659 for ; Sun, 28 Jun 2009 15:37:46 -0230 Received: from minnie.esd.mun.ca (minnie.esd.mun.ca [134.153.36.8]) by minnie.esd.mun.ca (8.14.0/8.13.3) with ESMTP id n5SHsE8E003876 for ; Sun, 28 Jun 2009 15:24:14 -0230 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] coexisting GCC versions References: From: Roger Mason Date: Sun, 28 Jun 2009 15:24:14 -0230 In-Reply-To: (Roger Mason's message of "Sat\, 27 Jun 2009 20\:17\:25 -0230") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Flag: NO X-Spam-Checker-Version: SpamAssassin 3.001005 (2006-08-29) X-Spam-Status: No, hits=-11.4 required=5.0 tests=ALL_TRUSTED,USER_IN_WHITELIST version=3.1.5 X-Spam-Report: -10 USER_IN_WHITELIST From: address is in the user's white-list * -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Scanned-By: MIMEDefang 2.57 on 134.153.232.57 X-Archives-Salt: 69420903-a433-4f5e-a64e-f05b24590c60 X-Archives-Hash: 092106a84a3f5ad7f7c8fe526f14b883 Hello, Roger Mason writes: > I need gcc 4.3 to compile a specific application. I am hoping that I > can install gcc 4.3 alongside 4.1.1 without suffering some awful > catastrophe. This is the output of emerge on the machine in question: The compilation finally completed. It only took about 14 hours. I followed the info presented at the end of the installation and did, as root: gcc-config i686-pc-linux-gnu-4.3.2 and gcc-config -l now says: garnet rmason # gcc-config -l [1] i686-pc-linux-gnu-4.1.1 [2] i686-pc-linux-gnu-4.3.2 I also ran source /etc/profile, as recommended and gcc -v now reports gcc-4.3.2. However, as an ordinary user gcc -v reports: garnet ~ $ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure (blah, blah) That is after running source /etc/profile _and_ (when that did not change the reported gcc version) logging out and back in. How do I set gcc to version 4.3.2 for an ordinary user? Thanks, Roger