upgrading gcc-2.95 to gcc-3.3

Dan Nelson dnelson at allantgroup.com
Sun Aug 1 17:55:43 PDT 2004


In the last episode (Aug 02), SP Network Solutions said:
> 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

gcc 3.3 installs itself as gcc33, so set CC=gcc33 and CXX=g++33 to use it.
Note that all the gcc* ports do this, so you can install all of them on the
same machine and pick which one to use whenever you want.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list