*  Informatique / Octave / Installation on Ubuntu 18.04 LTS

        * Installation of Octave 4.4.0
        * Installation of Octave 4.2.2
        * Installation of Octave 4.2.1
        * Installation of Octave 4.2.0

pict pict

On my computer, I need to install some packages

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\
                 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 4.4.0

Installing Octave 4.4.0 on Ubuntu 18.04 LTS (bionic - x86_64). June 21, 2018

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

  2. Configure stage :
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
    ./configure --prefix=/usr/local/OCTAVE/4.4.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. Installation : Run sudo make install command.

*  Installation of Octave 4.2.2

Installing Octave 4.2.2 on Ubuntu 18.04 LTS (bionic - x86_64). June 21, 2018

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

  2. Configure stage :
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
    ./configure --prefix=/usr/local/OCTAVE/4.2.2 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. Installation : Run sudo make install command.

*  Installation of Octave 4.2.1

Installing Octave 4.2.1 on Ubuntu 18.04 LTS (bionic - x86_64). June 21, 2018

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

  2. one have to patch octave source to avoid coredump when exit from octave :
    octave:1> quit

    panic: Abandon -- stopping myself...
    attempting to save variables to ’octave-workspace’...
    panic: attempted clean up failed -- aborting...
    Abandon (core dumped)

    The patch file octave.patch (1280 bytes) was provided on http://hg.savannah.gnu.org/hgweb/octave/rev/16fae04366b2. We can copy it on Octave source directory and runs

    wget http://www.math.univ-paris13.fr/~cuvelier/docs/Octave/octave.patch
    patch -p1 < octave.patch

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

  4. 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).
  5. Installation : Run sudo make install command.

*  Installation of Octave 4.2.0

Installing Octave 4.2.0 on Ubuntu 18.04 LTS (bionic - x86_64). June 21, 2018

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

  2. one have to patch octave source to avoid coredump when exit from octave :
    octave:1> quit

    panic: Abandon -- stopping myself...
    attempting to save variables to ’octave-workspace’...
    panic: attempted clean up failed -- aborting...
    Abandon (core dumped)

    The patch file octave.patch (1280 bytes) was provided on http://hg.savannah.gnu.org/hgweb/octave/rev/16fae04366b2. We can copy it on Octave source directory and runs

    wget http://www.math.univ-paris13.fr/~cuvelier/docs/Octave/octave.patch
    patch -p1 < octave.patch

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

  4. 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).
  5. Installation : Run sudo make install command.