Octave Installation Guide

On CentOS 5 - 32 bits

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

# yum install octave

On CentOS 5 - 64 bits

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

# yum install octave

This will install Octave version 3.0.5.

On Ubuntu and compiling from source version 3.4.2

Install all dependencies for octave:

$ sudo apt-get build-dep octave3.2

Download source from Octave page

$ ./configure

$ make

$ make install

On CentOS 5 32 bits - Compiling from sources

Installing tools for compilation

# yum groupinstall 'Development Tools'

Installing octave's dependencies

# yum install readline-devel ncurses-devel zlib-devel blas-devel lapack-devel pcre-devel libGL-devel libGLU-devel libICE-devel libSM-devel libX11-devel libXext-devel libXft-devel ImageMagick-devel texinfo-tex

# rpm -ivh http://dl.atrpms.net/el5-i386/atrpms/stable/fftw-3.2.2-14.el5.i386.rpm

# rpm -ivh http://dl.atrpms.net/el5-i386/atrpms/stable/fftw-devel-3.2.2-14.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/glpk-4.20-2.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/glpk-devel-4.20-2.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/suitesparse-3.1.0-1.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/suitesparse-devel-3.1.0-1.el5.i386.rpm

# rpm -ivh http://dl.atrpms.net/el5-i386/atrpms/stable/arpack-2.1-12.el5.i386.rpm

# rpm -ivh http://dl.atrpms.net/el5-i386/atrpms/stable/arpack-devel-2.1-12.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/qrupdate-1.1.0-2.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/qrupdate-devel-1.1.0-2.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-1.6.10-1.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-devel-1.6.10-1.el5.i386.rpm

# rpm -ivh http://dl.atrpms.net/el5-i386/atrpms/stable/qhull-2010.1-1.el5.i386.rpm

# rpm -ivh http://dl.atrpms.net/el5-i386/atrpms/stable/qhull-devel-2010.1-1.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/fltk-1.1.9-4.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/fltk-devel-1.1.9-4.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/jasper-libs-1.900.1-13.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/GraphicsMagick-1.3.7-4.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/GraphicsMagick-devel-1.3.7-4.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/GraphicsMagick-c++-1.3.7-4.el5.i386.rpm

# rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/GraphicsMagick-c++-devel-1.3.7-4.el5.i386.rpm

On CentOS 5, cURL default version is not compatible with octave 3.4.2 due to the constant CURLOPT_DIRLISTONLY, you should remove this default version and install the new one:

# yum remove curl

# rpm -ivh http://rpms.famillecollet.com/enterprise/5/test/i386/libssh2-1.2.7-1.el5.remi.i386.rpm

# rpm -ivh http://rpms.famillecollet.com/enterprise/5/test/i386/libcurl-7.21.7-5.el5.remi.i386.rpm

# rpm -ivh http://rpms.famillecollet.com/enterprise/5/test/i386/curl-7.21.7-5.el5.remi.i386.rpm

# rpm -ivh http://rpms.famillecollet.com/enterprise/5/test/i386/libcurl-devel-7.21.7-5.el5.remi.i386.rpm

$ export CPPFLAGS=“-I/usr/include/freetype2 -I/usr/include/GraphicsMagick”

$ export LIBS=“-lm -lamd -lblas -lcamd -lccolamd -lcholmod -lcolamd -lcurl -lcxsparse -ldl -lfftw3 -lfontconfig -lfftw3f -lfreetype -lglpk -lfltk_gl -lGLU -lGL -lfltk -lGraphicsMagick++ -lGraphicsMagick -lhdf5 -llapack -pthread -lqhull -lqrupdate -lreadline -lpcre -lncurses -lumfpack -lX11 -lz”

$ ./configure –-prefix=/home/tram/octave –-enable-static –-disable-shared –-disable-dl –-disable-docs –-disable-freetypetest

$ make

$ make install

More information: http://qc.uoregon.edu/octave-build-notes.html