gcc version on FreeBSD 9.0?

I installed FreeBSD 9.0 and realised that my gcc version is only 4.2.1 20070831. And there is no updates through freebsd-update or portsnap. Is this normal? What is the best way to update?
 
All is about licence of the later gcc releases; they are available by ports, but not in the distribution itself. It is not recommended to update this piece, as some software in the ports will probably not compile with your new gcc.
 
It is no problem to install different versions of gcc side by side. You can install newer versions up to the current development branch of gcc, version 4.7, via ports or packages. However, forcefully compile ports with newer gcc versions might fail. Some ports support compiling with newer versions of gcc via make config (i.e. www/chromium).
 
I'm using lang/gcc46 because I needed gfortran and the latest OpenMP support. Works great! I didn't change my base compiler or the compiler used for Ports, though. I'm not going down that road. YMMV if you do.
 
Back
Top