How to Install Octave

(Installation)
(Category:Software and wikify a litte)
Line 1: Line 1:
-
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. <sup>[[#Foot1|[1]]]</sup>
+
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.<ref>Octave, [http://www.gnu.org/software/octave/ http://www.gnu.org/software/octave/].</ref>
-
=Installation=
+
= Installation =
-
''Note that octave is currently available in [extras-dev], with one dependency in the SDK repository.''
+
''Note that octave is currently available in [[extras-devel]], with one dependency in the SDK repository.''
'''Please Note: Currently this is a rough outline of the steps to be taken. Steps other than these listed commands are required (eg: unpacking).'''
'''Please Note: Currently this is a rough outline of the steps to be taken. Steps other than these listed commands are required (eg: unpacking).'''
-
The following is a list of the steps I followed to install Octave on the Maemo 5 SDK:
+
The following is a list of the steps I followed to install Octave on the [[Open development/Maemo roadmap/Fremantle|Maemo 5]] SDK:
-
'''Download and Unpack'''
+
== Download and Unpack ==
Gnuplot: [http://www.gnuplot.info/ http://www.gnuplot.info/] (I used version 4.2.6)
Gnuplot: [http://www.gnuplot.info/ http://www.gnuplot.info/] (I used version 4.2.6)
Line 26: Line 26:
Octave: [http://www.gnu.org/software/octave/ http://www.gnu.org/software/octave/] (I used the latest stable version (3.2.3).)  
Octave: [http://www.gnu.org/software/octave/ http://www.gnu.org/software/octave/] (I used the latest stable version (3.2.3).)  
-
'''Install'''
+
== Install ==
 +
 
* Compile and Install Gnuplot
* Compile and Install Gnuplot
Line 54: Line 55:
=References=
=References=
-
<span id="Foot1"><sup>[1]. </sup>Octave, [http://www.gnu.org/software/octave/ http://www.gnu.org/software/octave/], Acessed 20/10/2009.</span>
 
 +
<references />
 +
 +
[[Category:Software]]
[[Category:Development]]
[[Category:Development]]
[[Category:HowTo]]
[[Category:HowTo]]

Revision as of 12:01, 4 March 2010

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]

Contents

Installation

Note that octave is currently available in extras-devel, with one dependency in the SDK repository.

Please Note: Currently this is a rough outline of the steps to be taken. Steps other than these listed commands are required (eg: unpacking).

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


Download and Unpack

Gnuplot: http://www.gnuplot.info/ (I used version 4.2.6)


f2c/libf2c: https://computation.llnl.gov/casc/Overture/henshaw/install/node8.html This is where I got my version

(The f2c homepage is http://www.netlib.org/f2c/.)


Fort77: https://computation.llnl.gov/casc/Overture/henshaw/install/node8.html This is where I got my version.

(The fort77 homepage might be here http://www.ibiblio.org/pub/Linux/devel/lang/fortran/.)


Octave: http://www.gnu.org/software/octave/ (I used the latest stable version (3.2.3).)

Install

  • 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 main obstacles were installing f2c, libf2c and fort77 and finding the necessary configure options to compile and install octave.

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/.