InstallingCompilers

Revision 1 as of 2005-07-13 07:18:48

Clear message

Installing the GNU C compiler and GNU C++ compiler

To install the gcc and g++ compilers, open a terminal. Enter the following command, and remember to make sure you are either connected to the internet or have your Ubuntu Installation CD in the CD drive when using apt-get.

sudo apt-get install build-essential

This will also install GNU make

Installing the GNU Java compiler

Note that GNU's Java compiler is not the same as the one developed and distributed by Sun Microsystems, and will not provide Java to the firefox browser. For that, please see [Java]. To install gcj, the GNU Java compiler, open a terminal and enter the following command.

sudo apt-get install gcj

To install the GNU Java bytecode interpreter, run the following in your terminal

sudo apt-get install gij

Installing the GNU Fortran compilers

To install the GNU Fortran 77 compiler - g77 - open a terminal and enter the following command.

sudo apt-get install g77

To install the GNU Fortran 95 compiler - gfortran - the command is

sudo apt-get install gfortran

Installing the GNU autotools

To install autoconf and automake, open a terminal and run the following command.

sudo apt-get install autoconf automaken

Apt-get will tell you to explicitly choose a version of automake. If, for example, you decide to use automake1.9, run the following.

sudo apt-get install autoconf automake1.9