Using newer version of GCC and binutils with the FreeBSD Ports Collection
Prev |  | Next

# 2 Prerequisites

## 2.1 Installing binutils from ports

To make use of all of the new features in the latest GCC versions, the latest version of binutils needs to be installed. Installation of the newer version of binutils is optional; but without it, there will be no support for new CPU instructions.

To install the latest available version of binutils using the FreeBSD ports tree, issue the following command:

    # cd /usr/ports/devel/binutils && make install

## 2.2 Installing GCC from ports

The FreeBSD ports tree offers several new versions of GCC. The following example is for the stable version 4.4. However, it is possible to install previous or later development versions (e.g. `lang/gcc43` or `lang/gcc45`).

To install one of the mentioned GCC ports, run the following command:

    # cd /usr/ports/lang/gcc44 && make install

Prev | Home | Next
Using newer version of GCC and binutils with the FreeBSD Ports Collection |  | Configuring ports for custom version of GCC

This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/.

For questions about FreeBSD, read the documentation before contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.