upgrading gcc-2.95 to gcc-3.3
Ion-Mihai Tetcu
itetcu at apropo.ro
Sun Aug 1 17:15:30 PDT 2004
[ cc'ed back questions@ ]
[ top posting detected, reordering content ]
On Mon, 2 Aug 2004 07:25:19 +0800
"SP Network Solutions" <sales at spnets.com> wrote:
> ----- Original Message -----
> From: "Ion-Mihai Tetcu" <itetcu at apropo.ro>
> To: "SP Network Solutions" <sales at spnets.com>
> Cc: <freebsd-questions at freebsd.org>
> Sent: Monday, August 02, 2004 7:16 AM
> Subject: Re: upgrading gcc-2.95 to gcc-3.3
>
>
> > On Mon, 2 Aug 2004 06:45:50 +0800
> > "SP Network Solutions" <sales at spnets.com> wrote:
> >
> > > Dear Sirs,
> > >
> > > Currently my machine (FreeBSD 4.1) using gcc-2.95 which is running
> > > perfectly. however, I need to upgrade it to gcc-3.3 which i've did via
> > > /usr/ports/lang/gcc33
> > >
> > > everything when smooth and installed.
> > >
> > > but when I type gcc -v it still show gcc version 2.95
> > > How do I get the new gcc-3.3 to run, what do i need to do or any
> > > configuration line, comands etc to make it work
> >
> > `which gcc` would point you to the right direction ;-)
>
> Thank you for answering my question.
>
> 'which gcc' it point me to /usr/bin/gcc
>
> errr... but still cannot get gcc-3.3 to run
> Sorry...I'm confuse any tips to configure it to run..?
And the ports install binaries by default in ...... bingo /usr/local/bin
What you which(1) tell is that /usr/bin is the first and /usr/local/bin
in after it in in your shell's PATH.
So try /usr/local/bin/gcc -v
Note that it is not a good idea to over-write you system's gcc, as in
FreeBSD there is a very tight integration between the compiler and the
system. Some of the gcc ports provide a knob to install over "base" gcc
and probably they are tested to work, I don't know.
% /usr/bin/gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.3.3 [FreeBSD] 20031106
--
IOnut
Unregistered ;) FreeBSD "user"
More information about the freebsd-questions
mailing list