1,848
edits
(→The right way: Improve format.) |
m (→Configuration) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* ''This article addresses the [[:Category:Installation|installation]] and [[Building]] of GNU Octave on Debian, and Debian-based distributions such as Ubuntu.'' | |||
Binary packages for GNU Octave and many [[Octave Forge]] packages are provided by all versions of Debian and Ubuntu. These are the most well-tested binaries available and should work best for most users. To install them, run: | |||
Binary packages for Octave and many Octave | |||
sudo apt-get install octave | sudo apt-get install octave | ||
In Debian and Ubuntu the "complete" GNU Octave software is split over multiple packages. To obtain the complete features of Octave, install additionally | |||
* {{codeline|octave-doc}}, {{codeline|octave-info}}, and {{codeline|octave-htmldoc}} for the documentation; | |||
* {{codeline|liboctave-dev}} for the octave development header files and mkoctfile (required to install Octave Forge packages); and | |||
* {{codeline|octave-dbg}} for the debugging symbols. | |||
Many Octave packages are also distributed by Debian and Ubuntu. These are tested to work the best with the respective Octave version. Install them via: | |||
Many Octave packages are also distributed by | |||
sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics | sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics | ||
Up to 2018, the [https://launchpad.net/~octave GNU Octave Team] on Launchpad actively maintained a PPA providing more up to date packages of Octave. These are backported from Debian unstable and are still useful for older Ubuntu installations. To set up your system to install these packages, run: | |||
sudo apt-add-repository ppa:octave/stable | sudo apt-add-repository ppa:octave/stable | ||
Line 78: | Line 74: | ||
=== Configuration === | === Configuration === | ||
Some Debian and Ubuntu specific configure tweaks are listed below: | |||
==== Java ==== | ==== Java ==== | ||
Autodetection for | Autodetection for Java should work well on Debian-based systems. A specific Java version can be specified by passing {{codeline|JAVA_HOME}} to configure, for example | ||
./configure JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 | ./configure JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 | ||
Line 94: | Line 84: | ||
==== HDF5 ==== | ==== HDF5 ==== | ||
On | On older versions of Debian and Ubuntu, you may get the following warning when building an older version of Octave from source: | ||
HDF5 library not found. Octave will not be able to save or load HDF5 data files. | HDF5 library not found. Octave will not be able to save or load HDF5 data files. |