Compiling Octave from Source on CentOS 5

GNU Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language.

Step 1: Download and untar the latest version of Octave

See Octave Download for more information

# wget
# tar -zxvf octave-3.4.5.tar.gz

Step 2: Check for presence of required libraries.

Octave Require BLAS and LAPACK to compile at a minimum.

Ensure that the blas and lapack libraries are already compiled, or included in your OS. For more information, see Installing lapack, blas and atlas on CentOS 5

If you are compiling octave with FFTW, make sure FFTW has been compiled. For more information, see Installing FFTW

Step 3: Compile Octave

# ./configure --prefix=/usr/local/octave  \
--with-blas="-L/usr/lib64 -lblas" \
--with-lapack="-L/usr/lib64 -llapack" \
--with-fftw3f-libdir=/usr/local/fftw/lib \
--with-fftw3-includedir=/usr/local/fftw/include \
--without-curl \
# make -j 8
# make install

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.