*  Informatique / Octave / Installation on Ubuntu 14.04 LTS

        * Octave 4.2.1
        * Octave 4.2.0
        * Octave 4.0.3
        * Octave 4.0.2
        * Octave 4.0.1
        * Octave 4.0.0
        * Octave 3.8.2
        * Octave 3.6.4
        * Octave 3.6.4 with OpenBlas
        * Octave 3.6.3

pict pict

*  Octave 4.2.1

Installing Octave 4.2.1 on Ubuntu 14.04.5 LTS (trusty - x86_64). October 12, 2017

On my computer, I need to install some packages to avoid some warnings during the configure stage of Octave.
sudo apt-get install lzip libsndfile1-dev libqt5scintilla2-dev libportaudio-dev libgraphicsmagick++1-dev qttools5-dev-tools 
sudo apt install libpcre3-dev libqhull-dev libbz2-dev libhdf5-dev libfftw3-dev 
sudo apt install libglpk-dev libcurl4-gnutls-dev libfreetype6-dev 
sudo apt install libparpack2 libncurses5-dev libreadline6-dev 
sudo apt install gperf flex bison gnuplot libfltk1.3-dev libarpack++2-dev libqrupdate-dev 
sudo apt install libosmesa6-dev libqt5scintilla2-dev libqscintilla2-dev 
sudo apt install libxft-dev libqt4-opengl-dev libgl2ps-dev openjdk-7-jre

  1. Download :

    For version 4.2.1, file octave-4.2.1.tar.lz (February 24, 2016) is given. On my computer, I must install lzip package to decompress the archive:

    sudo apt-get install lzip 
    wget ftp://ftp.gnu.org/gnu/octave/octave-4.2.1.tar.lz 
    tar --lzip -xvf octave-4.2.1.tar.lz 
    cd octave-4.2.1

  2. Configure stage :

    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 
    ./configure --prefix=/usr/local/OCTAVE/4.2.1

    I have always some warnings :
    ... configure: WARNING: PortAudio library not found.  The audioplayer, audiorecorder, and audiodevinfo functions will be disabled. configure: configure: NOTE: Libraries or auxiliary programs may be skipped if they are configure: NOTE: not found OR if they are missing required features on your configure: NOTE: system.

  3. Compilation stage :

    make -j4

  4. Installation stage :

    sudo make install

*  Octave 4.2.0

Installing Octave 4.2.0 on Ubuntu 14.04.1 LTS (trusty - x86_64). November 16, 2016

On my computer, I need to install some packages to avoid some warnings during the configure stage of Octave.
sudo apt-get install lzip libsndfile1-dev libqt5scintilla2-dev libportaudio-dev libgraphicsmagick++1-dev qttools5-dev-tools 
sudo apt install libpcre3-dev libqhull-dev libbz2-dev libhdf5-dev libfftw3-dev 
sudo apt install libglpk-dev libcurl4-gnutls-dev libfreetype6-dev 
sudo apt install libparpack2 libncurses5-dev libreadline6-dev 
sudo apt install gperf flex bison gnuplot libfltk1.3-dev libarpack++2-dev libqrupdate-dev 
sudo apt install libosmesa6-dev libqt5scintilla2-dev libqscintilla2-dev 
sudo apt install libxft-dev libqt4-opengl-dev libgl2ps-dev

  1. Download :

    For version 4.2.0, only file octave-4.2.0.tar.lz (November 16, 2016) is given. On my computer, I must install lzip package to decompress the archive:

    sudo apt-get install lzip 
    wget ftp://ftp.gnu.org/gnu/octave/octave-4.2.0.tar.lz 
    tar --lzip -xvf octave-4.2.0.tar.lz 
    cd octave-4.2.0

  2. Configure stage :

    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 
    ./configure --prefix=/usr/local/OCTAVE/4.2.0

    I have always some warnings :
    ... configure: WARNING: HDF5 library not found.  Octave will not be able to save or load HDF5 data files. configure: WARNING: PortAudio library not found.  The audioplayer, audiorecorder, and audiodevinfo functions will be disabled. configure: configure: NOTE: Libraries or auxiliary programs may be skipped if they are configure: NOTE: not found OR if they are missing required features on your configure: NOTE: system.

  3. Compilation stage :

    make -j4

  4. Installation stage :

    sudo make install

*  Octave 4.0.3

Installing Octave 4.0.3 on Ubuntu 14.04.1 LTS (trusty - x86_64). July 2, 2016

  1. Compilation :

    wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.3.tar.xz 
    tar xvfJ octave-4.0.3.tar.xz 
    cd octave-4.0.3 
    ./configure --prefix=/usr/local/OCTAVE/4.0.3 
    make 
    sudo make install

    On my computer, i need to do the following commands before configure stage to disable some warnings ( lib OsMesa not found and JAVA_HOME not initialized)

    sudo apt-get install libosmesa6-dev 
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

    When running make check, one can have a segmentation fault (after several minutes):

     
    ... 
    libinterp/dldfcn/__osmesa_print__.cc-tst ....................panic: 
    Segmentation fault -- stopping myself...

    Just add export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so to correct this issue.
  2. Extra packages installation :
    See : http://octave.sourceforge.net/packages.php.
    We get some packages

    wget http://downloads.sourceforge.net/octave/general-2.0.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/splines-1.3.1.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.10.tar.gz 
    ...

    We can do a global installation (packages can be used by all users). For that, as root, we do
    sudo /usr/local/OCTAVE/4.0.3/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/4.0.3/share/octave/packages. Under Octave, we run commands :
    pkg install -global splines-1.3.1.tar.gz 
    pkg install -global msh-1.0.10.tar.gz 
    pkg install -global general-2.0.0.tar.gz

    For more details, see here.
  3. Trouble :
    On my laptop (Ubuntu 14.04.1 LTS, nvidia GPU card), the version of the nvidia driver is 352 and i run octave with this command

    LD_PRELOAD=/usr/lib/nvidia-352/libGL.so /usr/local/OCTAVE/4.0.3/bin/octave --no-gui

*  Octave 4.0.2

Installing Octave 4.0.2 on Ubuntu 14.04.1 LTS (trusty - x86_64). May, 18th 2016

  1. Compilation :

    wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.2.tar.gz 
    tar zxvf octave-4.0.2.tar.gz 
    cd octave-4.0.2 
    ./configure --prefix=/usr/local/OCTAVE/4.0.2 
    make 
    sudo make install

    On my computer, i need to do the following commands before configure stage to disable some warnings ( lib OsMesa not found and JAVA_HOME not initialized)

    sudo apt-get install libosmesa6-dev 
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

    When running make check, one can have a segmentation fault (after several minutes):

     
    ... 
    libinterp/dldfcn/__osmesa_print__.cc-tst ....................panic: 
    Segmentation fault -- stopping myself...

    Just add export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so to correct this issue.
  2. Extra packages installation :
    See : http://octave.sourceforge.net/packages.php.
    We get some packages

    wget http://downloads.sourceforge.net/octave/general-2.0.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/splines-1.2.9.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.10.tar.gz 
    ...

    We can do a global installation (packages can be used by all users). For that, as root, we do
    sudo /usr/local/OCTAVE/4.0.2/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/4.0.2/share/octave/packages. Under Octave, we run commands :
    pkg install -global splines-1.2.9.tar.gz 
    pkg install -global msh-1.0.10.tar.gz 
    pkg install -global general-2.0.0.tar.gz

    For more details, see here.
  3. Trouble :
    On my laptop (Ubuntu 14.04.1 LTS, nvidia GPU card), the version of the nvidia driver is 352 and i run octave with this command

    LD_PRELOAD=/usr/lib/nvidia-352/libGL.so /usr/local/OCTAVE/4.0.2/bin/octave --no-gui

*  Octave 4.0.1

Installing Octave 4.0.1 on Ubuntu 14.04.1 LTS (trusty - x86_64). March, 29th 2016

  1. Compilation :

    wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.1.tar.gz 
    tar zxvf octave-4.0.1.tar.gz 
    cd octave-4.0.1 
    ./configure --prefix=/usr/local/OCTAVE/4.0.1 
    make 
    sudo make install

    On my computer, i need to do the following commands to disable some warnings ( lib OsMesa not found and JAVA_HOME not initialized)

    sudo apt-get install libosmesa6-dev 
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

    When running make check, one can have a segmentation fault (after several minutes):

     
    ... 
    libinterp/dldfcn/__osmesa_print__.cc-tst ....................panic: 
    Segmentation fault -- stopping myself...

    Just add export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so to correct this issue.
  2. Extra packages installation :
    See : http://octave.sourceforge.net/packages.php.
    We get some packages

    wget http://downloads.sourceforge.net/octave/general-2.0.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/splines-1.2.9.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.10.tar.gz 
    ...

    We can do a global installation (packages can be used by all users). For that, as root, we do
    sudo /usr/local/OCTAVE/4.0.1/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/4.0.1/share/octave/packages. Under Octave, we run commands :
    pkg install -global splines-1.2.9.tar.gz 
    pkg install -global msh-1.0.10.tar.gz 
    pkg install -global general-2.0.0.tar.gz

    For more details, see here.

*  Octave 4.0.0

Installing Octave 4.0.0 on Ubuntu 14.04.1 LTS (trusty - x86_64). June, 11th 2015

  1. Compilation :

    wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz 
    tar zxvf octave-4.0.0.tar.gz 
    cd octave-4.0.0 
    ./configure --prefix=/usr/local/OCTAVE/4.0.0 
    make 
    sudo make install

    On my computer, i need to do the following commands to disable some warnings ( lib OsMesa not found and JAVA_HOME not initialized)

    sudo apt-get install libosmesa6-dev 
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

  2. Extra packages installation :
    See : http://octave.sourceforge.net/packages.php.
    We get some packages

    wget http://downloads.sourceforge.net/octave/general-2.0.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/splines-1.2.8.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.10.tar.gz 
    ...

    We can do a global installation (packages can be used by all users). For that, as root, we do
    sudo /usr/local/OCTAVE/4.0.0/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/4.0.0/share/octave/packages. Under Octave, we run commands :
    pkg install -global splines-1.2.8.tar.gz 
    pkg install -global msh-1.0.10.tar.gz 
    pkg install -global general-2.0.0.tar.gz

    For more details, see here.

*  Octave 3.8.2

Installing Octave 3.8.2 on Ubuntu 14.04.1 LTS (trusty - x86_64). October, 3rd 2014

  1. Compilation :

    wget ftp://ftp.gnu.org/gnu/octave/octave-3.8.2.tar.bz2 
    tar jxvf octave-3.8.2.tar.bz2 
    ./configure --prefix=/usr/local/OCTAVE/3.8.2 CFLAGS=-O2 CXXFLAGS=-O2 
    make 
    sudo make install

  2. Extra packages installation :
    See : http://octave.sourceforge.net/packages.php.
    We get some packages

    wget http://downloads.sourceforge.net/octave/general-1.3.4.tar.gz 
    wget http://downloads.sourceforge.net/octave/linear-algebra-2.2.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/splines-1.2.7.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.10.tar.gz 
    ...

    We can do a global installation (packages can be used by all users). For that, as root, we do
    sudo /usr/local/OCTAVE/3.8.2/bin/octave

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/3.8.2/share/octave/packages. Under Octave, we run commands :
    pkg install -global splines-1.2.7.tar.gz 
    pkg install -global msh-1.0.10.tar.gz 
    pkg install -global general-1.3.4.tar.gz 
    pkg install -global linear-algebra-2.2.0.tar.gz

    For more details, see here.

*  Octave 3.6.4

Installation d’Octave 3.6.4 . Effectuée le 28 avril 2013.

  1. Configuration :

    machine :

    gpuschwarz

    system :

    Ubuntu 12.04 LTS (x86_64)

    libraries installées :

    SuiteSparse-4.2.1 (voir section .10.1)

  2. Liens utiles :

  3. Préparation de la compilation d’Octave 3.6.4 :
    On récupère les sources

    wget ftp://ftp.gnu.org/gnu/octave/octave-3.6.4.tar.bz2

    On décompresse
    tar jxvf octave-3.6.4.tar.bz2

    On lance la compil’ avec pour répertoire d’installation /usr/local/OCTAVE/3.6.4 et des options de compilation optimisées (par default options -g -O2)
    cd octave-3.6.4 
    ./configure --prefix=/usr/local/OCTAVE/3.6.4 --with-umfpack="-lumfpack -lsuitesparseconfig" 
    make CFLAGS=-O3 CXXFLAGS=-O3 LDFLAGS=

  4. Installation d’Octave 3.6.4 :

    sudo make install

    puis, par exemple, un alias dans le fichier ~/.bash_aliases :
    alias octave-3.6.4=’/usr/local/OCTAVE/3.6.4/bin/octave’

  5. Problèmes rencontrés sous Octave 3.6.4

  6. Installation de packages supplémentaires :
    Une liste des packages est disponible ici : http://octave.sourceforge.net/packages.php. On récupère quelques packages

    wget http://downloads.sourceforge.net/octave/engine-1.0.9.tar.gz 
    wget http://downloads.sourceforge.net/octave/general-1.3.2.tar.gz 
    wget http://downloads.sourceforge.net/octave/splines-1.2.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.6.tar.gz 
    wget http://downloads.sourceforge.net/octave/plot-1.1.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/missing-functions-1.0.2.tar.gz 
    ...

    On effectue une installation globale (packages accessibles pour tous les utilisateurs). Pour cela, on lance octave sous root (!!)
    sudo /usr/local/OCTAVE/3.6.4/bin/octave

    Les différents packages seront alors installés, à partir d’Octave, dans le répertoire /usr/local/OCTAVE/3.6.4/share/octave/packages. Sous octave, on execute les commandes suivantes :
    pkg install -global splines-1.2.0.tar.gz 
    pkg install -global msh-1.0.6.tar.gz 
    pkg install -global general-1.3.2.tar.gz 
    pkg install -global plot-1.1.0.tar.gz 
    pkg install -global missing-functions-1.0.2.tar.gz 
    pkg install -global engine-1.0.9.tar.gz

    Pour plus de détails, sur la gestion des packages on peut aller ici.

*  Octave 3.6.4 with OpenBlas

Installation d’Octave 3.6.4 . Effectuée le 11 juin 2013.

  1. Configuration :

    machine :

    gpuschwarz

    system :

    Ubuntu 12.04 LTS (x86_64)

    libraries installées :

  2. Liens utiles :

    cd octave-3.6.4 
    ./configure --prefix=/usr/local/OCTAVE/3.6.4 --enable-openmp --with-blas="-lopenblas" --with-lapack="-lopenblas" 
    ./configure --prefix=/usr/local/OCTAVE/3.6.4 --enable-openmp --with-blas="-lopenblas" --with-lapack="-lopenblas" --with-umfpack="-L/usr/local/SuiteSparse-4.2.1/lib -lumfpack -lsuitesparseconfig" CFLAGS=-I/usr/local/SuiteSparse-4.2.1/include 
    make CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS= 
    make CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS="-lrt -L/usr/local/SuiteSparse-4.0.2/metis-4.0/ -lmetis" 
    make CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS="/home/cuvelier/lib/SuiteSparse/metis-4.0/Lib/parmetis.o -lmetis  /home/cuvelier/lib/SuiteSparse/SuiteSparse_config/SuiteSparse_config.o -lrt"

    Si une erreur du type :
    configure : error : A BLAS library was detected but found incompatible with your Fortran 77 compiler settings.

    Sous root :

*  Octave 3.6.3

Installation d’Octave 3.6.3 . Effectuée le 19 décembre 2012.

  1. Configuration :

    machine :

    gpuschwarz

    system :

    Ubuntu 12.04 LTS (x86_64)

    libraries installées :

    SuiteSparse-4.0.2 (voir section .10.1)

  2. Liens utiles :

  3. Installation de HDF5 : Ne pas faire pour le moment
    Cette librairie est présente dans http://www.hdfgroup.org/HDF5/

    wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.10.tar.bz2 
    tar jxvf hdf5-1.8.10.tar.bz2 
    cd hdf5-1.8.10 
    ./configure 
    make

  4. Installation de Magics++ : Ne pas faire pour le moment

  5. Préparation de la compilation d’Octave 3.6.3 :
    On récupère les sources

    wget ftp://ftp.gnu.org/gnu/octave/octave-3.6.3.tar.bz2

    On décompresse
    tar jxvf octave-3.6.3.tar.bz2

    On lance la compil’ avec pour répertoire d’installation /usr/local/OCTAVE/3.6.3 et des options de compilation optimisées (par default options -g -O2)
    cd octave-3.6.3 
    ./configure --prefix=/usr/local/OCTAVE/3.6.3 
    make CFLAGS=-O3 CXXFLAGS=-O3 LDFLAGS=

    Si cela se passe mal, quelques pistes :
  6. Compilation d’Octave 3.6.3 :
    Dans le répertoire sources octave-3.6.3

    export LIBS="-lrt -L/usr/local/SuiteSparse-4.0.2/metis-4.0 -lmetis" 
    ./configure --prefix=/usr/local/OCTAVE/3.6.3 --with-umfpack="-lumfpack -lsuitesparseconfig"

    Les librairies HDF5 et ImageMagick posent problèmes. On laisse tomber pour le moment, on compile sans
    make CFLAGS=-O3 CXXFLAGS=-O3 LDFLAGS=

  7. Installation d’Octave 3.6.3 :

    sudo make install

    puis, par exemple, un alias dans le fichier ~/.bash_aliases :
    alias octave-3.6.3=’/usr/local/OCTAVE/3.6.3/bin/octave’

    Ensuite, s’il y a des problemes avec les graphiques sous octave :
    octave:1> x=0:pi/100:pi 
    octave:2> plot(x,sin(x)) 
    octave:3> 
    gnuplot> nset obj 1 
             ^ 
             line 0: invalid command

    C’est que la version de gnuplot utilisée n’est pas assez récente. Ici, c’est la version 4.4 du répertoire /usr/bin qui est utilisée. On va choisir la verison 4.6 du répertoire /usr/local/bin avec la fonction octave gnuplot_binary :
    octave:4> gnuplot_binary(’/usr/local/bin/gnuplot’)

    Pour éviter ce genre de manip, j’ai choisi de renommer la version 4.4
    sudo mv /usr/bin/gnuplot /usr/bin/gnuplot-4.4 
    sudo ln -s /usr/local/bin/gnuplot /usr/bin/gnuplot

  8. Installation de packages supplémentaires :
    Une liste des packages est disponible ici : http://octave.sourceforge.net/packages.php. On récupère quelques packages

    wget http://downloads.sourceforge.net/octave/splines-1.1.2.tar.gz 
    wget http://downloads.sourceforge.net/octave/msh-1.0.6.tar.gz 
    wget http://downloads.sourceforge.net/octave/plot-1.1.0.tar.gz 
    wget http://downloads.sourceforge.net/octave/missing-functions-1.0.2.tar.gz 
    ...

    On effectue une installation globale (packages accessibles pour tous les utilisateurs). Pour cela, on lance octave sous root (!!)
    sudo /usr/local/OCTAVE/3.6.3/bin/octave

    Les différents packages seront alors installés, à partir d’Octave, dans le répertoire /usr/local/OCTAVE/3.6.3/share/octave/packages. Sous octave, on execute les commandes suivantes :
    pkg install -global splines-1.1.2.tar.gz 
    pkg install -global msh-1.0.6.tar.gz 
    pkg install -global general-1.3.2.tar.gz 
    pkg install -global plot-1.1.0.tar.gz 
    pkg install -global missing-functions-1.0.2.tar.gz 
    pkg install -global engine-1.0.9.tar.gz

    Pour plus de détails, sur la gestion des packages on peut aller ici.