*  Informatique / Octave / Installation on CentOS 7

        * Installation of Octave 5.1.0
        * Installation of Octave 4.4.1
        * Installing Octave 4.2.1 [01/03/2017]
        * Installing Octave 4.2.0

pict pict

On my computer, I need to install some packages

sudo yum install lzip qhull-devel pcre-devel gnuplot texinfo bison byacc flex\
  zlib-devel hdf5-devel fftw-devel glpk-devel libcurl-devel freetype-devel\
  blas-devel lapack-devel gcc-c++ pcre-devel\
  qrupdate-devel suitesparse-devel arpack-devel ncurses-devel readline-devel\
  gperf mesa-libOSMesa-devel fontconfig-devel fltk-devel\
  gl2ps-devel java-1.8.0-openjdk-devel qt-devel qscintilla-devel\
  bzip2-devel atlas-devel libsndfile-devel portaudio-devel GraphicsMagick-c++-devel

and

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

*  Installation of Octave 5.1.0

Installing Octave 5.1.0 on CentOS 7.6.1810. March 4, 2019

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

    Thanks to Mihai Gologanu for correcting an error in JAVA_HOME path.

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

Installing Octave 4.4.1 on CentOS 7.6.1810. March 4, 2019

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

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

  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.

*  Installing Octave 4.2.1 [01/03/2017]

I start with an up-to-date system :

sudo yum update

On my computer, in addition to the packages needed by previous versions (see ??), 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 : On my computer, I install lzip package to decompress the archive tar.lz archive :
    sudo yum 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-1.8.0-openjdk
    ./configure --prefix=/usr/local/OCTAVE/4.2.1

  3. Compilation stage :
    make -j4

*  Installing Octave 4.2.0

On my computer, in addition to the packages needed by previous versions (see ??), 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 -j 4

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

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

  5. Installation stage :
    sudo make install