*  Installation

        * Ubuntu 16.04 LTS
        * Installation of Octave 4.0.3
        * Installation of Octave 4.0.2
        * Installation of Octave 4.0.1
        * Installation of Octave 4.0.0
        * Ubuntu 14.04 LTS
        * 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
        * CentOS 7
        * Installing Octave 4.2.0
        * Installing Octave 4.0.0 to 4.0.3
        * OpenSUSE 13.2
        * Installation using ’Software for Scientists and Engineers’ repository
        * Compilation/Installation of Octave 3.8.2 to 4.0.3
        * Compilation/Installation of Octave 4.2.0

*  Ubuntu 16.04 LTS

On my computer, I need to install some packages

  sudo apt install openjdk-8-jdk gcc g++ gfortran
  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

*  Installation of Octave 4.0.3

Installing Octave 4.0.3 on Ubuntu 16.04 LTS (trusty - x86_64). November 3, 2016

  1. Get source code :
      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

  2. Configure stage :
      export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
      ./configure --prefix=/usr/local/OCTAVE/4.0.3 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...
  4. Check : Run make check command.

    On my computer I have trouble with this command. After a few minutes, a segmentation fault occurs

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

  5. Installation : Run sudo make install command.

*  Installation of Octave 4.0.2

Installing Octave 4.0.2 on Ubuntu 16.04 LTS (trusty - x86_64). November 4, 2016

  1. Get source code :
      wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.2.tar.gz
      tar xvfz octave-4.0.2.tar.gz
      cd octave-4.0.2

  2. Configure stage :
      export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
      ./configure --prefix=/usr/local/OCTAVE/4.0.2

  3. Compilation : Run make command and be patient...
  4. Check : Run make check command.

    On my computer I have trouble with this command. After a few minutes, a segmentation fault occurs

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

  5. Installation : Run sudo make install command.

*  Installation of Octave 4.0.1

Installing Octave 4.0.1 on Ubuntu 16.04 LTS (trusty - x86_64). November 4, 2016

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

  2. Configure stage :
      export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
      ./configure --prefix=/usr/local/OCTAVE/4.0.1

  3. Compilation : Run make command and be patient...
  4. Check : Run make check command.

    On my computer I have trouble with this command. After a few minutes, a segmentation fault occurs

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

  5. Installation : Run sudo make install command.

*  Installation of Octave 4.0.0

Installing Octave 4.0.0 on Ubuntu 16.04 LTS (trusty - x86_64). November 4, 2016

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

  2. Configure stage :
      export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
      ./configure --prefix=/usr/local/OCTAVE/4.0.0

  3. Compilation : Run make command and be patient...
  4. Check : Run make check command.

    On my computer I have trouble with this command. After a few minutes, a segmentation fault occurs

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

  5. Installation : Run sudo make install command.

*  Ubuntu 14.04 LTS

*  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

I must also install package qttools5-dev-tools to avoid an error during the compilation stage of Octave.

  sudo apt-get install qttools5-dev-tools

  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 zypper 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.

*  CentOS 7

*  Installing Octave 4.2.0

On my computer, in addition to the packages needed by previous versions (see Installing Octave 4.0.0 to 4.0.3), I need to install, some packages to avoid some warnings during the configure stage of Octave.

  sudo yum install bzip2-devel atlas-devel libsndfile-devel portaudio-devel GraphicsMagick-c++-devel

Due to trouble with missing libatlab.so library, I manually link to the thread version of this library :

  sudo ln -s /usr/lib64/atlas/libtatlas.so /usr/lib64/libatlas.so

  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 yum 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-1.8.0-openjdk
      ./configure --prefix=/usr/local/OCTAVE/4.2.0

  3. Compilation stage :
      make -j4

*  Installing Octave 4.0.0 to 4.0.3

On my computer, I need to install some packages to avoid some warnings and errors during the configure stage of Octave. For that I first install the EPEL (Extra Packages for Enterprise Linux) repository

  sudo yum install epel-release

and then the packages

  sudo yum install qhull-devel pcre-devel gnuplot texinfo bison byacc flex
  sudo yum install zlib-devel hdf5-devel fftw-devel glpk-devel libcurl-devel freetype-devel
  sudo yum install blas-devel lapack-devel
  sudo yum install qrupdate-devel suitesparse-devel arpack-devel ncurses-devel readline-devel
  sudo yum install gperf mesa-libOSMesa-devel fontconfig-devel fltk-devel
  sudo yum install gl2ps-devel java-1.8.0-openjdk-devel qt-devel qscintilla-devel

In all the following commands, one must replace <VERSION> by the version of Octave to install

  1. Download :
      wget ftp://ftp.gnu.org/gnu/octave/octave-<VERSION>.tar.gz
      tar zxvf octave-<VERSION>.tar.gz
      cd octave-<VERSION>

  2. Configure stage :
      export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
      ./configure --prefix=/usr/local/OCTAVE/<VERSION>

  3. Compilation stage :
      make -j4

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

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

    ...  
    libinterp/dldfcn/__magick_read__.cc-tst ..................... PASS      4/4  
    libinterp/dldfcn/__osmesa_print__.cc-tst ....................panic: Erreur de segmentation -- stopping myself...  
    octave exited with signal 11

    This bug is referenced as number bug #44478 with title :

    bug #44478: test __osmesa_print__.cc-tst crashes with Nvidia drivers

    It occurs when using print command with figure visible off and never gave me ...

  6. Installation stage :
      sudo make install

  7. 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/<VERSION>/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/<VERSION>/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.

*  OpenSUSE 13.2

*  Installation using ’Software for Scientists and Engineers’ repository

The information for this installation where found on : Install package science/octave.

  sudo zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_13.2/science.repo

  sudo zypper refresh

  sudo zypper install octave

Chargement des données du dépôt...  
Lecture des paquets installés...  
Résolution des dépendances des paquets...  
 
L’application suivante va être installée :  
  "GNU Octave"  
 
Les 41 NOUVEAUX paquets suivants vont être installés :  
  blas-devel fftw3-devel fftw3-threads-devel gcc48-fortran gcc-fortran hdf5  
  hdf5-devel hdf5-devel-data inkscape-extensions-fig libamd-2_4_1 libarpack2  
  libcamd-2_4_1 libccolamd-2_9_1 libcholmod-3_0_6 libcolamd-2_9_1  
  libcxsparse-3_1_4 libfftw3_threads3 libgl2ps1 libglpk40  
  libGraphicsMagick3-config libGraphicsMagick-Q16-3 libGraphicsMagick++-Q16-3  
  libhdf5-100 libhdf5_cpp100 libhdf5_fortran100 libhdf5_hl100 libhdf5_hl_cpp100  
  libhdf5hl_fortran100 libOSMesa9 libpng12-0 libqhull6-6_3_1_1494 libqrupdate1  
  libqscintilla2-11 libsuitesparseconfig-4_4_6 libumfpack-5_7_1 makeinfo octave  
  octave-cli octave-devel octave-doc transfig  
 
Les 8 paquets recommandés suivants ont été automatiquement sélectionnés :  
  blas-devel fftw3-devel fftw3-threads-devel gcc-fortran hdf5-devel octave-devel  
  octave-doc transfig  
 
41 paquets à installer.  
Taille de téléchargement totale : 30,4 MiB. Déjà en cache : 0 B  Après  
l’opération, 139,4 MiB d’espace disque supplémentaire sera utilisé.  
Continuer ? [o/n/? affiche toutes les options] (o): o  
...

The intalled version of Octave is 4.0.2rc4.

*  Compilation/Installation of Octave 3.8.2 to 4.0.3

On my computer, I need to install some packages to avoid some warnings and errors during the configure stage of Octave.

  sudo zypper install pcre-devel qhull-devel lapack-devel qrupdate-devel amd-devel
  sudo zypper install arpack-devel readline-devel gperf bison flex gnuplot
  sudo zypper install zlib-devel  glpk-devel libcurl-devel mesa-devel glu-devel
  sudo zypper install freetype2-devel fontconfig-devel fltk-devel gcc-java java-devel
  sudo zypper install qt-devel gl2ps-devel libqscintilla-devel

In all the following commands, one must replace <VERSION> by the version of Octave to install

  1. Download :
      wget ftp://ftp.gnu.org/gnu/octave/octave-<VERSION>.tar.gz
      tar xvfz octave-<VERSION>.tar.gz
      cd octave-<VERSION>

    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 zypper install lzip
      wget ftp://ftp.gnu.org/gnu/octave/octave-4.2.0.tar.gz
      tar --lzip -xvf octave-octave-4.2.0.tar.gz
      cd octave-4.2.0

  2. Configure stage :
      export JAVA_HOME=/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0
      ./configure --prefix=/usr/local/OCTAVE/<VERSION>

  3. Compilation stage :
      make -j4

  4. Installation stage :
      sudo make install

  5. 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/<VERSION>/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/<VERSION>/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.

*  Compilation/Installation of Octave 4.2.0

On my computer, in addition to the packages needed by previous versions (see Compilation/Installation of Octave 3.8.2 to 4.0.3), I need to install, some packages to avoid some warnings during the configure stage of Octave.

  sudo zypper install libbz2-devel libsndfile-devel portaudio-devel graphicsmagick-devel

In all the following commands, one must replace <VERSION> by the version of Octave to install

  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 zypper 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/lib64/jvm/java-1.8.0-openjdk-1.8.0
      ./configure --prefix=/usr/local/OCTAVE/4.2.0

    I have always some warnings :

    ...  
    configure: WARNING: PortAudio library not found.  The audioplayer, audiorecorder, and audiodevinfo functions will be disabled.  
    configure: WARNING: GraphicsMagick++ library not found.  The imread, imwrite, and imfinfo functions for reading and writing image files will not be fully functional.  
    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

  5. 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.2.0/bin/octave --no-gui

    All packages will be installed from Octave in the directory /usr/local/OCTAVE/4.2.0/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.