Tags:
,
view all tags
%TOC% ---++ 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 | [[ftp://ftp.gnu.org/gnu/octave/octave-3.2.4.tar.bz2][octave-3.2.4.tar.bz2]] | | tar.gz | [[ftp://ftp.gnu.org/gnu/octave/octave-3.2.4.tar.gz][octave-3.2.4.tar.gz]] | ---++ System Requirements Before to install Octave, please install from repo the following list of packages: <PRE> $ yum install -y gcc44 gcc44-c++.x86_64 gcc44-gfortran $ yum install -y glibc-devel $ yum install -y libtermcap-devel $ yum install -y ImageMagick $ yum install -y flex $ yum install -y bison $ yum install -y gperf $ yum install -y compat-readline $ yum install -y readline-devel $ yum install -y texinfo $ yum install -y suitesparse $ yum install -y hdf5 $ yum install -y libgfortran $ yum install -y libtermcap-devel $ yum install -y gnuplot.x86_64 gnuplot42.x86_64 $ yum install -y pcre.x86_64 pcre-devel.x86_64 $ yum install -y blas.x86_64 $ yum install -y apack.x86_64 lapack-devel.x86_64 $ yum install -y curl-devel $ yum install -y fftw3 fftw3-devel $ yum install -y fltk.x86_64 fltk-devel.x86_64 fltk-fluid.x86_64 $ yum install -y libX11-devel $ yum install -y mesa-libGLU-devel </PRE> ---++ 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 <b>$VO_GRIDIT_SW_DIR</b> directory of the grid CE. <PRE> $ 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 </PRE> ---++ Building Octave-3.2.4 <PRE> $ ./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 </PRE> ---++ Installing add-ons Extra packages for GNU Octave-3.2.4 can be freely downloaded from [[http://octave.sourceforge.net/packages.php][here]] We suggest to dowload and install the following packages: | *Packages* | *details* | *download* | | java-1.2.8.tar.gz | [[http://octave.sourceforge.net/java/index.html][details]] | [[http://downloads.sourceforge.net/octave/java-1.2.8.tar.gz?download][download]] | | miscellaneous-1.0.11.tar.gz | [[http://octave.sourceforge.net/miscellaneous/index.html][details]] | [[http://downloads.sourceforge.net/octave/miscellaneous-1.0.11.tar.gz?download][download]] | | optim-1.0.17.tar.gz | [[http://octave.sourceforge.net/optim/index.html][details]] | [[http://downloads.sourceforge.net/octave/optim-1.0.17.tar.gz?download][download]] | | signal-1.1.1.tar.gz | [[http://octave.sourceforge.net/signal/index.html][details]] | [[http://downloads.sourceforge.net/octave/signal-1.1.1.tar.gz?download][download]] | | specfun-1.1.0.tar.gz | [[http://octave.sourceforge.net/specfun/index.html][details]] | [[http://downloads.sourceforge.net/octave/specfun-1.1.0.tar.gz?download][download]] | | struct-1.0.9.tar.gz | [[http://octave.sourceforge.net/struct/index.html][details]] | [[http://downloads.sourceforge.net/octave/struct-1.0.9.tar.gz?download][download]] | Create a plugin directory for downloading the plugins: <PRE> $ cd /opt/exp_soft/gridit/octave-3.2.4/plugins $ tree plugins/ plugins/ |-- java-1.2.8.tar.gz |-- miscellaneous-1.0.11.tar.gz |-- optim-1.0.17.tar.gz |-- signal-1.1.1.tar.gz |-- specfun-1.1.0.tar.gz `-- struct-1.0.9.tar.gz 0 directories, 6 files </PRE> Start Octave and go to the directory where you placed the downloaded package. Then type : <PRE> $ 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 <bug@octave.org> (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'. <b> octave:1> pkg install java-1.2.8.tar.gz optim-1.0.17.tar.gz specfun-1.1.0.tar.gz miscellaneous-1.0.11.tar.gz signal-1.1.1.tar.gz struct-1.0.9.tar.gz </b> </PRE> ---++ Testing the installation Before to start, please add the Octave binary to the _PATH_ and the libraries to the _LD_LIBRARY_PATH_ variables. <PRE> $ 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/ </PRE> Now, you can launch the octave CLI <PRE> $ 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 <bug@octave.org> (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> </PRE> ---++ References [[http://www.gnu.org/software/octave/][Octave]] -- Main.GiuseppeLaRocca - 2011-12-15
Edit
|
Attach
|
PDF
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
More topic actions...
Topic revision: r3 - 2011-12-19
-
GiuseppeLaRocca
Home
Site map
CEMon web
CREAM web
Cloud web
Cyclops web
DGAS web
EgeeJra1It web
Gows web
GridOversight web
IGIPortal web
IGIRelease web
MPI web
Main web
MarcheCloud web
MarcheCloudPilotaCNAF web
Middleware web
Operations web
Sandbox web
Security web
SiteAdminCorner web
TWiki web
Training web
UserSupport web
VOMS web
WMS web
WMSMonitor web
WeNMR web
UserSupport Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Edit
Attach
Copyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback