How to Install Octave

(Installation)
(Installation)
Line 6: Line 6:
* Compile and Install Gnuplot
* Compile and Install Gnuplot
-
* Compile and Install f2c
+
./configure
 +
make
 +
fakeroot make install
 +
* Compile and Install f2c and libf2c
 +
cd src/
 +
make
 +
fakeroot make install
 +
cd ../libf2c
 +
make
 +
cp f2c.h /usr/include/
 +
cp libf2c.a /usr/lib/
* Install fort77 script
* Install fort77 script
-
cp fort77
+
cp fort77 /usr/bin
* Compile and Install GNU Octave
* Compile and Install GNU Octave
  ./configure F77=fort77 CXXFLAGS=-pthread FLIBS=-lf2c
  ./configure F77=fort77 CXXFLAGS=-pthread FLIBS=-lf2c

Revision as of 15:25, 20 October 2009

GNU Octave is a numerically oriented high level mathematical programming language. It is useful for science, engineering and maths, and it is mostly compatible with matlab. [1]

Installation

The following is a list of the steps I followed to install Octave on the Maemo 5 SDK:

  • Compile and Install Gnuplot
./configure
make
fakeroot make install
  • Compile and Install f2c and libf2c
cd src/
make
fakeroot make install
cd ../libf2c
make
cp f2c.h /usr/include/
cp libf2c.a /usr/lib/
  • Install fort77 script
cp fort77 /usr/bin
  • Compile and Install GNU Octave
./configure F77=fort77 CXXFLAGS=-pthread FLIBS=-lf2c
make
fakeroot make install

The information used for installation can be found here:
Using gfortran or installing f2c and fort77
f2c / f77 Installation Instructions for Linux

References

[1]. Octave, http://www.gnu.org/software/octave/, Acessed 20/10/2009.