Octave for Debian systems: Difference between revisions

Jump to navigation Jump to search
→‎Configuration: sundials 3.1
(Overhaul and shorten intro section.)
(→‎Configuration: sundials 3.1)
(4 intermediate revisions by 2 users not shown)
Line 48: Line 48:


or, for the sake of convenience, use some "one-liner" to install them:
or, for the sake of convenience, use some "one-liner" to install them:
* '''Ubuntu 19.10'''
:<pre>sudo apt-get install gcc g++ gfortran make libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev fig2dev libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot-x11 libgraphicsmagick++1-dev libhdf5-dev openjdk-8-jdk libsndfile1-dev llvm-dev lpr texinfo libgl1-mesa-dev libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libqscintilla2-qt4-dev libsuitesparse-dev texlive libxft-dev zlib1g-dev autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar qtbase5-dev qttools5-dev qttools5-dev-tools libqscintilla2-qt5-dev libsundials-dev</pre>


* '''Ubuntu 18.04 (LTS)'''
* '''Ubuntu 18.04 (LTS)'''
Line 74: Line 78:
=== Configuration ===
=== Configuration ===


As mentioned above, Octave can be compiled with the default settings using {{Codeline|./configure && make && make install}}. You can also tweak the setup using configure options. Some examples are given below for a Linux system.
Some Debian and Ubuntu specific configure tweaks are listed below:
 
==== 64 bit ====
 
To get [https://www.gnu.org/software/octave/doc/interpreter/Compiling-Octave-with-64_002dbit-Indexing.html 64-bit] indexing requires all linked libraries to support 64-bit variables. You can omit most of these except BLAS which gives a fatal error. This is remedied by compiling [http://www.openblas.net/ OpenBLAS] with edits to its Makefile.rule so that BINARY=64 INTERFACE64=1.
 
./configure LD_LIBRARY_PATH=/opt/OpenBLAS/lib CPPFLAGS=-I/opt/OpenBLAS/include LDFLAGS=-L/opt/OpenBLAS/lib --enable-64


==== Java ====
==== Java ====


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
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 90: Line 88:
==== HDF5 ====
==== HDF5 ====


On current versions of Debian and Ubuntu, you may get the following warning when building an older version of Octave from source:
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.
Line 101: Line 99:


  ./configure CPPFLAGS="-I/usr/include/mpi -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX"
  ./configure CPPFLAGS="-I/usr/include/mpi -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX"
==== Sundials ====
On recent Debian and Ubuntu releases whose Sundials version (in {{codeline|libsundials-dev}}) is 3.1, a configure flag needs to be passed for {{codeline|ode15i}} and {{codeline|ode15s}} to be compiled with support for sparse Jacobians (bug {{bug|55937}}), as follows:
./configure CPPFLAGS="-I/usr/include/suitesparse"


== See also ==
== See also ==
281

edits

Navigation menu