Installation

To install GCC to your POSIX-like system you should follow instructions described in GCC installation manual[1]. For GNU/Linux, quick installation instructions for the GCC source tarballs present on CD follows:

To successfully compile GCC, you need recent version of bison, autoconf, working C compiler, make and shell sh. All these packages are present in major Linux distributions today, or available at GNU homepage2.1.

For outdated systems you will need to install new binutils first. You can install binunits this way:

tar xzvf <path>/binutils.tar.gz
mkdir build
cd build
../binutils-1.12/configure --prefix=<dir>
make 
make install

To install GCC itself, you need:

tar xzvf <file_name>
mkdir build
cd build
../gcc/configure --disable-checking --prefix=<dir>
make bootstrap
make install

To debug programs generated by new GCC you need recent GDB that is not present in most Linux distributions yet. To install you do:

tar xzvf <path>/gdb.tar.gz
mkdir build
cd build
../gdb-5.1.1/configure --prefix=<dir>
make 
make install

where <dir> is a directory where you want GCC to be installed.


Jan Hubicka 2003-05-04