Octave for Debian systems: Difference between revisions

Line 283: Line 283:
=== Configuration ===
=== Configuration ===


==== HDF5 issue ====
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.
 
==== 64 bit ====
 
To get [https://www.gnu.org/software/octave/doc/interpreter/Compiling-Octave-with-64_002dbit-Indexing.html 64-bit] 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.
 
<code>./configure LD_LIBRARY_PATH=/opt/OpenBLAS/lib CPPFLAGS=-I/opt/OpenBLAS/include LDFLAGS=-L/opt/OpenBLAS/lib --enable-64</code>.
 
==== Java JIT ====
 
To get the just-in-time compiler, you should specify the location of the java compiler since the autodetection script often fails.
 
<code>./configure JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" --enable-jit</code>
 
==== HDF5 ====


With current Debian versions you may get the following when building from source:
With current Debian versions you may get the following when building from source:
Anonymous user