Octave for Debian systems: Difference between revisions

→‎The right way: Updated and lined the package information.
(→‎Compiling from source: Information reorganization. Flatten the TOC.)
(→‎The right way: Updated and lined the package information.)
Line 38: Line 38:
==== The right way ====
==== The right way ====


The best way is to select and install all the dependencies as listed in the {{Path|INSTALL.OCTAVE}} file. The following are their package names in Debian repositories (they will have their own dependencies which your package maintainer will solve automatically). If you are building development versions, you'll require some more packages as listed on {{Path|etc/HACKING}} and {{Path|INSTALL}}. Many of them will already be installed on your system.
The best way is to select and install all the dependencies as listed in the {{Path|INSTALL.OCTAVE}} file. The following are their package names in Debian repositories (they will have their own dependencies which your package maintainer will solve automatically). If you are building development versions, you'll require some more packages as listed on {{Path|etc/HACKING}} and {{Path|INSTALL}}. Many of them will already be installed on your system. Install the dependencies by typing
 
sudo apt-get install
 
followed by the package names of the table below.


* build tools
:<pre>g++ gcc gfortran make</pre>
* build tools (development version)
:<pre>autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar</pre>
* external packages
:<pre>libblas-dev liblapack-dev libpcre3-dev</pre>
* optional but ''strongly'' recommended. Check the [http://www.gnu.org/software/octave/doc/interpreter/External-Packages.html Octave manual] for more information on them. Packages marked with * are virtual packages (you'll have to pick one of the displayed versions).
:{| class="wikitable"
:{| class="wikitable"
|-
|-
! Dependency        !! Debian Jessie (stable)               !! Ubuntu 13.10
! Dependency        !! Debian 8 Jessie (stable)             !! Ubuntu 14.04 Trusty Tahr (LTS)
|-
| '''Required''' build tools
||
[https://packages.debian.org/jessie/gcc gcc]
[https://packages.debian.org/jessie/g++ g++]
[https://packages.debian.org/jessie/gfortran gfortran]
[https://packages.debian.org/jessie/make make]
||
[http://packages.ubuntu.com/trusty/gcc gcc]
[http://packages.ubuntu.com/trusty/g++ g++]
[http://packages.ubuntu.com/trusty/gfortran gfortran]
[http://packages.ubuntu.com/trusty/make make]
|-
|-
| ARPACK            || libarpack2-dev                       || libarpack2-dev
| '''Required''' external packages
||
[https://packages.debian.org/jessie/libblas-dev libblas-dev]
[https://packages.debian.org/jessie/liblapack-dev liblapack-dev]
[https://packages.debian.org/jessie/libpcre3-dev libpcre3-dev]
||
[http://packages.ubuntu.com/trusty/libblas-dev libblas-dev]
[http://packages.ubuntu.com/trusty/liblapack-dev liblapack-dev]
[http://packages.ubuntu.com/trusty/libpcre3-dev libpcre3-dev]
|-
|-
| cURL              || libcurl4-gnutls-dev                  || libcurl4-gnutls-dev
| '''Optional''' build tools for the development version
||
[https://packages.debian.org/jessie/autoconf autoconf]
[https://packages.debian.org/jessie/automake automake]
[https://packages.debian.org/jessie/bison bison]
[https://packages.debian.org/jessie/flex flex]
[https://packages.debian.org/jessie/gperf gperf]
[https://packages.debian.org/jessie/gzip gzip]
[https://packages.debian.org/jessie/icoutils icoutils]
[https://packages.debian.org/jessie/librsvg2-bin librsvg2-bin]
[https://packages.debian.org/jessie/libtool libtool]
[https://packages.debian.org/jessie/perl perl]
[https://packages.debian.org/jessie/rsync rsync]
[https://packages.debian.org/jessie/tar tar]
||
[http://packages.ubuntu.com/trusty/autoconf autoconf]
[http://packages.ubuntu.com/trusty/automake automake]
[http://packages.ubuntu.com/trusty/bison bison]
[http://packages.ubuntu.com/trusty/flex flex]
[http://packages.ubuntu.com/trusty/gperf gperf]
[http://packages.ubuntu.com/trusty/gzip gzip]
[http://packages.ubuntu.com/trusty/icoutils icoutils]
[http://packages.ubuntu.com/trusty/librsvg2-bin librsvg2-bin]
[http://packages.ubuntu.com/trusty/libtool libtool]
[http://packages.ubuntu.com/trusty/perl perl]
[http://packages.ubuntu.com/trusty/rsync rsync]
[http://packages.ubuntu.com/trusty/tar tar]
|-
|-
| epstool          || epstool                              || epstool
|colspan="3"| '''Optional''', but ''strongly'' recommended. Check the [http://www.gnu.org/software/octave/doc/interpreter/External-Packages.html Octave manual] for more information on them.
|-
|-
| FFTW3            || libfftw3-dev                         || libfftw3-dev
| ARPACK
|| [https://packages.debian.org/jessie/libarpack2-dev libarpack2-dev]
|| [http://packages.ubuntu.com/trusty/libarpack2-dev libarpack2-dev]
|-
|-
| fig2dev          || transfig                            || transfig
| cURL
|| [https://packages.debian.org/jessie/libcurl4-gnutls-dev libcurl4-gnutls-dev]
|| [http://packages.ubuntu.com/trusty/libcurl4-gnutls-dev libcurl4-gnutls-dev]
|-
|-
| FLTK              || libfltk-dev *                        || libfltk-dev *
| epstool
|| [https://packages.debian.org/jessie/epstool epstool]
|| [http://packages.ubuntu.com/trusty/epstool epstool]
|-
|-
| fontconfig        || libfontconfig1-dev                   || libfontconfig1-dev
| FFTW3
|| [https://packages.debian.org/jessie/libfftw3-dev libfftw3-dev]
|| [http://packages.ubuntu.com/trusty/libfftw3-dev libfftw3-dev]
|-
|-
| FreeType          || libfreetype6-dev                    || libfreetype6-dev
| fig2dev
|| [https://packages.debian.org/jessie/transfig transfig]
|| [http://packages.ubuntu.com/trusty/transfig transfig]
|-
|-
| gl2ps            || libgl2ps-dev                         || libgl2ps-dev
| FLTK
|| [https://packages.debian.org/jessie/libfltk-dev libfltk-dev *]
|| [http://packages.ubuntu.com/trusty/libfltk-dev libfltk-dev *]
|-
|-
| GLPK              || libglpk-dev                         || libglpk-dev
| fontconfig
|| [https://packages.debian.org/jessie/libfontconfig1-dev libfontconfig1-dev]
|| [http://packages.ubuntu.com/trusty/libfontconfig1-dev libfontconfig1-dev]
|-
|-
| GNU Readline      || libreadline-dev                     || libreadline-dev
| FreeType
|| [https://packages.debian.org/jessie/libfreetype6-dev libfreetype6-dev]
|| [http://packages.ubuntu.com/trusty/libfreetype6-dev libfreetype6-dev]
|-
|-
| gnuplot          || gnuplot                              || gnuplot
| gl2ps
|| [https://packages.debian.org/jessie/libgl2ps-dev libgl2ps-dev]
|| [http://packages.ubuntu.com/trusty/libgl2ps-dev libgl2ps-dev]
|-
|-
| GraphicsMagick++  || libgraphicsmagick++-dev             || libgraphicsmagick++-dev
| GLPK
|| [https://packages.debian.org/jessie/libglpk-dev libglpk-dev]
|| [http://packages.ubuntu.com/trusty/libglpk-dev libglpk-dev]
|-
|-
| HDF5              || libhdf5-serial-dev                   || libhdf5-serial-dev
| GNU Readline
|| [https://packages.debian.org/jessie/libreadline-dev libreadline-dev]
|| [http://packages.ubuntu.com/trusty/libreadline-dev libreadline-dev]
|-
|-
| Java JDK          || openjdk-7-jdk                        || openjdk-7-jdk
| gnuplot
|| [https://packages.debian.org/jessie/gnuplot gnuplot]
|| [http://packages.ubuntu.com/trusty/gnuplot gnuplot]
|-
|-
| libsndfile        || libsndfile1-dev                     || libsndfile1-dev
| GraphicsMagick++
|| [https://packages.debian.org/jessie/libgraphicsmagick++-dev libgraphicsmagick++-dev *]
|| [http://packages.ubuntu.com/trusty/libgraphicsmagick++-dev libgraphicsmagick++-dev *]
|-
|-
| LLVM              || llvm-dev *                          || llvm-dev *
| HDF5
|| [https://packages.debian.org/jessie/libhdf5-serial-dev libhdf5-serial-dev]
|| [http://packages.ubuntu.com/trusty/libhdf5-serial-dev libhdf5-serial-dev]
|-
|-
| lpr              || lpr                                  || lpr
| Java JDK
|| [https://packages.debian.org/jessie/openjdk-7-jdk openjdk-7-jdk]
|| [http://packages.ubuntu.com/trusty/openjdk-7-jdk openjdk-7-jdk]
|-
|-
| makeinfo          || texinfo                              || texinfo
| libsndfile
|| [https://packages.debian.org/jessie/libsndfile1-dev libsndfile1-dev]
|| [http://packages.ubuntu.com/trusty/libsndfile1-dev libsndfile1-dev]
|-
|-
| OpenGL            || libgl-dev *                          || libgl-dev *
| LLVM
|| [https://packages.debian.org/jessie/llvm-dev llvm-dev]
|| [http://packages.ubuntu.com/trusty/llvm-dev llvm-dev]
|-
|-
| OSMesa            || libosmesa6-dev                      || libosmesa6-dev
| lpr
|| [https://packages.debian.org/jessie/lpr lpr]
|| [http://packages.ubuntu.com/trusty/lpr lpr]
|-
|-
| pstoedit          || pstoedit                            || pstoedit
| makeinfo
|| [https://packages.debian.org/jessie/texinfo texinfo]
|| [http://packages.ubuntu.com/trusty/texinfo texinfo]
|-
|-
| PortAudio        || portaudio19-dev                     || portaudio19-dev
| OpenGL
|| [https://packages.debian.org/jessie/libgl-dev libgl-dev *]
|| [http://packages.ubuntu.com/trusty/libgl-dev libgl-dev *]
|-
|-
| Qhull            || libqhull-dev                         || libqhull-dev
| OSMesa
|| [https://packages.debian.org/jessie/libosmesa6-dev libosmesa6-dev]
|| [http://packages.ubuntu.com/trusty/libosmesa6-dev libosmesa6-dev]
|-
|-
| QRUPDATE          || libqrupdate-dev                      || libqrupdate-dev
| pstoedit
|| [https://packages.debian.org/jessie/pstoedit pstoedit]
|| [http://packages.ubuntu.com/trusty/pstoedit pstoedit]
|-
|-
| QScintilla        || libqscintilla2-dev                   || libqscintilla2-dev
| PortAudio
|| [https://packages.debian.org/jessie/portaudio19-dev portaudio19-dev]
|| [http://packages.ubuntu.com/trusty/portaudio19-dev portaudio19-dev]
|-
|-
| Qt                || libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4 libqt4-opengl-dev || libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4
| Qhull
|| [https://packages.debian.org/jessie/libqhull-dev libqhull-dev]
|| [http://packages.ubuntu.com/trusty/libqhull-dev libqhull-dev]
|-
|-
| SuiteSparse      || libsuitesparse-dev                   || libsuitesparse-dev
| QRUPDATE
|| [https://packages.debian.org/jessie/libqrupdate-dev libqrupdate-dev]
|| [http://packages.ubuntu.com/trusty/libqrupdate-dev libqrupdate-dev]
|-
|-
| Xft              || libxft-dev                           || libxft-dev
| QScintilla
|| [https://packages.debian.org/jessie/libqscintilla2-dev libqscintilla2-dev]
|| [http://packages.ubuntu.com/trusty/libqscintilla2-dev libqscintilla2-dev]
|-
|-
| zlib             || zlib1g-dev                           || zlib1g-dev
| Qt
||
[https://packages.debian.org/jessie/libqt4-dev libqt4-dev]
[https://packages.debian.org/jessie/libqtcore4 libqtcore4]
[https://packages.debian.org/jessie/libqtwebkit4 libqtwebkit4]
[https://packages.debian.org/jessie/libqt4-network libqt4-network]
[https://packages.debian.org/jessie/libqtgui4 libqtgui4]
||
[http://packages.ubuntu.com/trusty/libqt4-dev libqt4-dev]
[http://packages.ubuntu.com/trusty/libqtcore4 libqtcore4]
[http://packages.ubuntu.com/trusty/libqtwebkit4 libqtwebkit4]
[http://packages.ubuntu.com/trusty/libqt4-network libqt4-network]
[http://packages.ubuntu.com/trusty/libqtgui4 libqtgui4]
|-
| SuiteSparse
|| [https://packages.debian.org/jessie/libsuitesparse-dev libsuitesparse-dev]
|| [http://packages.ubuntu.com/trusty/libsuitesparse-dev libsuitesparse-dev]
|-
| Xft
|| [https://packages.debian.org/jessie/libxft-dev libxft-dev]
|| [http://packages.ubuntu.com/trusty/libxft-dev libxft-dev]
|-
| zlib
|| [https://packages.debian.org/jessie/zlib1g-dev zlib1g-dev]
|| [http://packages.ubuntu.com/trusty/zlib1g-dev zlib1g-dev]
|-
|-
|}
|}
Packages marked with * in the table above are virtual packages (you'll have to pick one of the displayed versions).


{{Note|if only the native graphics toolkit will be used, gnuplot will not be necessary.}}
{{Note|if only the native graphics toolkit will be used, gnuplot will not be necessary.}}