InstallingCompilers
1901
Comment:
|
1492
rework to remove apt-get
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
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 }}} |
To install the '''gcc''' and '''g++''' compilers, you will need the {{{build-essential}}} package. |
Line 12: | Line 9: |
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 }}} |
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, install the following package: {{{gcj}}}. |
Line 22: | Line 15: |
To install the GNU Java bytecode interpreter, run the following in your terminal {{{ sudo apt-get install gij }}} |
To install the GNU Java bytecode interpreter, you need the {{{gij}}} package. |
Line 31: | Line 20: |
Line 34: | Line 22: |
To install the GNU Fortran 77 compiler - '''g77''' - open a terminal and enter the following command. | To install the GNU Fortran 77 compiler - '''g77''', you need the {{{g77}}} package. |
Line 36: | Line 24: |
{{{ sudo apt-get install g77 }}} To install the GNU Fortran 95 compiler - '''gfortran''' - the command is {{{ sudo apt-get install gfortran }}} |
To install the GNU Fortran 95 compiler - '''gfortran''', the package is: {{{gfortran}}}. |
Line 48: | Line 28: |
To install '''autoconf''' and '''automake''', open a terminal and run the following command. | To install '''autoconf''' and '''automake''', you need the {{{autoconf automake}}} packages. |
Line 50: | Line 30: |
{{{ sudo apt-get install autoconf automake }}} 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 }}} |
Apt-get will tell you to explicitly choose a version of automake. If, for example, you decide to use automake1.9, you need to specify the version, such as the {{{automake1.9}}} package. |
Installing the GNU C compiler and GNU C++ compiler
To install the gcc and g++ compilers, you will need the build-essential package.
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, install the following package: gcj.
gcj can be used to:
- compile .java files to bytecode (.class files)
- compile .java files to a linux-executable
To install the GNU Java bytecode interpreter, you need the gij package.
To have gcj compile to executables, install libgcj6-dev (otherwise an error during compilation occurs: libgcj.spec: No such file or directory). Use synaptic to install libgcj6-dev.
Installing the GNU Fortran compilers
To install the GNU Fortran 77 compiler - g77, you need the g77 package.
To install the GNU Fortran 95 compiler - gfortran, the package is: gfortran.
Installing the GNU autotools
To install autoconf and automake, you need the autoconf automake packages.
Apt-get will tell you to explicitly choose a version of automake. If, for example, you decide to use automake1.9, you need to specify the version, such as the automake1.9 package.
InstallingCompilers (last edited 2008-08-06 16:19:00 by localhost)