*  Informatique / Octave / Installation on Linux Mint 19

        * Installation of Octave 5.1.0

pict pict

The installation procedure is identical to that proposed for Ubuntu 18.04. It has been tested by Pavel Hofman.

Some packages must be installed :

sudo apt install openjdk-8-jdk gcc g++ gfortran \
                 libpcre3-dev libqhull-dev libbz2-dev libhdf5-dev libfftw3-dev libsndfile1-dev\
                 libglpk-dev libcurl4-gnutls-dev libfreetype6-dev libgraphicsmagick1-dev libgraphicsmagick++1-dev\
                 libparpack2 libncurses5-dev libreadline6-dev libsqlite3-dev tix-dev libssl-dev\
                 gperf flex bison gnuplot libfltk1.3-dev libarpack++2-dev libqrupdate-dev\
                 libosmesa6-dev libqscintilla2-qt5-dev libqscintilla2-dev  qttools5-dev-tools qttools5-dev\
                 libxft-dev libgl2ps-dev libgdbm-dev liblzma-dev libffi-dev  libsundials-dev

and
sudo ln -s /usr/lib/libqscintilla2_qt5.so /usr/lib/libqscintilla2-qt5.so

*  Installation of Octave 5.1.0

Installing Octave 5.1.0 on Linux Mint 19

  1. Get source code :
    wget ftp://ftp.gnu.org/gnu/octave/octave-5.1.0.tar.xz
    tar xvfJ octave-5.1.0.tar.xz
    cd octave-5.1.0

  2. Configure stage :
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
    ./configure --prefix=/usr/local/OCTAVE/5.1.0 CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/usr/lib/x86_64-linux-gnu/hdf5/serial/

  3. Compilation : Run make command and be patient... or more efficient make -j 4 to specify the number of threads to be used (here 4 is specified).
  4. Checking (optional) : If you want to check compilation, one has to install texinfo package which depends on texlive packages :
    sudo apt install texinfo

    Therefater, run make check command.
    Thanks to Pavel Hofman for this suggestion.
  5. Installation : Run sudo make install command.

Thereafter to launch Octave with GUI, one can execute

/usr/local/OCTAVE/5.1.0/bin/octave --gui

or without GUI
/usr/local/OCTAVE/5.1.0/bin/octave