Tags:
, view all tags

About this wiki

The following best practices document aims to provide some hints and examples on how to install and configure http://www.gnu.org/software/octave/ on a grid based infrastructure.

About Octave

GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to Matlab so that most programs are easily portable.

System requirements

The instructions from this best practice have been tested on a:
  • OS: Scientific Linux SL release 5.4 (Boron)
  • Compiler: GNU 4.4.0;
  • Arch: x86_64.

Source Pack

The following tar-zipped gtgz source packs are available for download.

Pack File
tar.bz2 octave-3.4.2.tar.bz2
tar.gz octave-3.4.2.tar.gz

System Requirements

Before to install Octave, please install from repo the following list of packages:

$ yum install -y gcc-gfortran
$ yum install -y ImageMagick
$ yum install -y gcc44-gfortran-4.4.0-6.el5
$ yum install -y flex
$ yum install -y bison
$ yum install -y gperf
$ yum install -y compat-readline43-4.3-3
$ yum install -y readline-devel-5.1-3.el5
$ yum install -y texinfo-4.8-14.el5
$ yum install suitesparse
$ yum install fftw3-3.1.2-5.el5.1
$ yum install hdf5-1.8.7-1.el5.rf
$ yum install libgfortran44-4.4.0-6.el5

Unpacking the source and installation

In a grid-based infrastructure we would recommend to install the software in the experiment software directory for the VO using sgm privileges and share this software
packages with other VO members. In this wiki we chosen to unpack this software under the $VO_GRIDIT_SW_DIR directory of the grid CE.

$ cd $VO_GRIDIT_SW_DIR
$ wget  ftp://ftp.gnu.org/gnu/octave/octave-3.2.4.tar.gz
$ tar zxvf octave-3.2.4.tar.gz
$ rm -f octave.3.24.tar.gz

Building Octave-3.2.4

$ ./configure --prefix=/opt/exp_soft/gridit/octave-3.2.4 
                     --with-magick=ImageMagick 
                     --without-qrupdate 
                     --without-curl CC=gcc44 CXX=g++44 F77=gfortran44 
                     --enable-docs=no 
                     --disable-readline >log 2>log &
$ make
$ make install

Testing the installation

Before to start, please add the Octave binary to the PATH and the libraries to the LD_LIBRARY_PATH variables.

$ export PATH=$PATH:/opt/exp_soft/gridit/octave-3.2.4/bin/
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/exp_soft/gridit/octave-3.2.4/lib/octave-3.2.4/

Now, you can launch the octave CLI

$ octave
GNU Octave, version 3.2.4
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-unknown-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to  (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

octave:1> 

References

Octave

-- GiuseppeLaRocca - 2011-12-15

Edit | Attach | PDF | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | More topic actions...
Topic revision: r1 - 2011-12-15 - GiuseppeLaRocca
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platformCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback