Octave-Forge Wiki | RecentChanges

OctaveForGNULinux

CategoryInstall

Debian

Determine what packages are currently available, using e.g.

$ aptitude search octave

As of 2008/05, the command above should list, amongst others:

Select your choice of packages, then install them, e.g. w/

# aptitude install octave3.0 octave3.0-doc octave3.0-emacsen

Notes:

$ aptitude search ?provides\(^octave$\)
$ aptitude search ?description\(octave-forge\)

DebianDevelopmentSources

In order to build Octave from development sources, the first step is to follow the instructions given under the heading Development Sources of [Downloading Octave]. These commands require Mercurial, which can be installed with the command

# aptitude install mercurial

Building Octave from sources requires a number of programs and libraries. All of these are available as Debian packages and the list given on [Debian's source package page for Octave3.2] can be used for reference and installed by

# aptitude build-dep octave3.2
After this, it should be possible to follow the BuildFromSource instructions.

DebianVersions

Note that on Debian, multiple versions of Octave are provided concurrently and thus, Octave packages have names that include the version number, such as, for example: octave2.1-emacsen, octave3.0-emacsen, octave3.2-emacsen. This may change with Octave 3.4.

References: [Upgrade Ubuntu Jaunty to Karmic (9.04 to 9.10) breaks self-compiled octave]([Gmane copy]), [Octave 3.4]

Ubuntu

Note that on Ubuntu 10.04 and above, the default command to get packages is apt-get instead of aptitude (unless you have installed aptitude). Therefore the command to search the available packages is
$ apt-cache search octave

The rest of the commands are the same but replacing aptitude with apt-get.

To build newer releases of octave some extra packages may be needed. Next some extra compilation instructions are given.

If you plan to compile stuff in your Ubuntu system is not unwise to get the essential tools.

$ sudo apt-get install build-essential 

After these you can proceed to get the dependencies as explained before.

$ sudo apt-get build-dep octave3.2 

After this, it should be possible to follow the BuildFromSource instructions. However, you may notice that the configure script says that bison and libfontconfig-dev are still missing so you need to get them too.

$ sudo apt-get install bison libfontconfig-dev 

After this you can compile (which takes some time, 1:30 hr in a 2.0 Ghz PC). Even though make check may work perfectly, you may still find a problem when trying to plot. This is due to missing x11 for gnuplot. Gnuplot will tell you Terminal set to unknown. To fix it get the full gnuplot package

$ sudo apt-get install gnuplot 

Make sure that gnuplot-x11 is in the list of installed packages.

You may still find a problem when plotting: Gtk-WARNIN **: Unable to locate theme engine in module_path: "pixmap". To fix this do

$ sudo apt-get install gtk2-engines-pixbuf 

You can get homebrewed binaries for Ubuntu 10.04 and 10.10 (32bits) from [here] . For Ubuntu 11.04 and 11.10 (32bits) from [here].

References:

Fedora

Early versions of Fedora included Octave in the core distribution. Since Fedora Core 3, Octave has been included in Fedora Extras (and is generally better maintained now in Extras than it was in Core). The packages can be installed using the yum command, which will automatically download and install the packages along with all of their dependencies.

The related packages are:

octave-forge is recommended to all users, as it provides many extra functions. octave-devel contains the octave headers and mkoctfile script and is really only needed by users who are developing code that is to be dynamically linked to octave. octave and octave-forge can be installed with the command

# yum install octave-forge

By default, yum will most likely install blas and lapack as your matrix math libraries, but ATLAS is usually much faster. If you want to install atlas with octave, use the command

# yum install octave-forge atlas

Note that if you are using an i386-compatible processor the base atlas package is not optimized for newer hardware. If you have newer hardware, you can get even better performance with the atlas-3dnow (AMD K6 processors), atlas-sse (Pentium III or newer), or atlas-sse2 (Pentium 4 or newer).

Gentoo

# emerge sync
# emerge octave
# emerge octave-forge (optional)

RedHat

SuSE