From owner-freebsd-questions Mon Jan 27 19:33: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 6FFA637B401 for ; Mon, 27 Jan 2003 19:33:28 -0800 (PST) Received: from ohsmtp01.ogw.rr.com (ohsmtp01.ogw.rr.com [65.24.7.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B31D43F85 for ; Mon, 27 Jan 2003 19:33:27 -0800 (PST) (envelope-from quintin@ohio.edu) Received: from tjqathlonpc (dhcp024-208-182-170.columbus.rr.com [24.208.182.170]) by ohsmtp01.ogw.rr.com (8.12.5/8.12.2) with ESMTP id h0S3XQXc006263 for ; Mon, 27 Jan 2003 22:33:26 -0500 (EST) From: "Thaddeus J. Quintin" To: Subject: RE: Installing new versions of GCC Date: Mon, 27 Jan 2003 22:33:42 -0500 Message-ID: <001401c2c67e$0e734710$0200a8c0@tjqathlonpc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <15925.58197.393122.606646@guru.mired.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 Wow, Thanks for all of the responses. First off, that was a typo in my original email. I was running make in /usr/ports/lang/gcc32. Now, I tried a few things. I ran 'make clean' to start over, 'make', 'make deinstall', and then 'make install'. When that's done, I end up with gcc32 (and g++32, etc) in /usr/local/bin. So, THAT appears to be working alright. However, the original gcc (etc.) remain in /usr/bin. It doesn't seem right that I should need to delete all of the old compilers and create links, but perhaps that's what I need to do. Any advice now that I have this new perspective? Thaddeus -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Mike Meyer Sent: Monday, January 27, 2003 8:57 PM To: Thaddeus J. Quintin Cc: freebsd-questions@FreeBSD.org Subject: Re: Installing new versions of GCC In <001301c2c665$0d28f620$0200a8c0@tjqathlonpc>, Thaddeus J. Quintin typed: > Greetings- > > I'm a pretty new user of FreeBSD and I've enjoyed every minute of it > so far. > > I'm trying to update gcc via the package/ports system, but I've had a > few problems. > > 'pkg_add -r gcc' > > Results in a error message that the file is unavailable. This make > sense, because the package it's looking for > (ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4.7-release/Latest/gc > c. > tgz) does not exist. > > I downloaded the ports package (/usr/ports) and went into the > /lang/gcc directory. I first tried 'make.' That ran for awhile, but > when it I don't see a "lang/gcc". I see a collection of lang/gcc. Did you really go to lang/gcc32? > finished, gcc still reported version '2.95.4.' After that, I realized > I should run 'make install.' That ran for awhile, but in the end, > when I ran gcc -v I still got this message- > > Using builtin specs. > gcc version 2.95.4 20020320 [FreeBSD] Which gcc did you run? the one that comes with the system - 2.95.4 - is /usr/bin/gcc. The one the port installed is probably /usr/local/bin/gcc, or /usr/local/bin/gcc32 or some such. > I'd like to be using 3.2 so I'd be using the same compiler as my > University's server. I could get the source from GNU and install that, > but I'm trying to utilize the FreeBSD Package/ports system as much as > possible. > > Am I missing something?? Is there something else I should try? Well, going to 5.0 has been suggested, but moving off -STABLE seems extreme when there are ports of the version you want. However, if you want to compile your system with 3.2, going to -CURRENT - via 5.0-RELEASE - is the easiest solution. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message