Difference between revisions of "Octave"

From CBLFS
Jump to navigationJump to search
Line 45: Line 45:
  
 
Compile the Octave package:
 
Compile the Octave package:
  ./configure --prefix=/usr --enable-static --enable-shared &&
+
  ./configure --prefix=/usr --libexecdir=/usr/lib --enable-static \
 +
--enable-shared &&
 
  make
 
  make
  
Line 62: Line 63:
  
 
Compile the Octave package:
 
Compile the Octave package:
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --enable-static --enable-shared &&
+
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --libexecdir=/usr/lib \
 +
--enable-static --enable-shared &&
 
  make
 
  make
  
Line 73: Line 75:
 
Compile the Octave package:
 
Compile the Octave package:
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
 
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
  --enable-static --enable-shared &&
+
  --libexecdir=/usr/lib32 --enable-static --enable-shared &&
 
  make
 
  make
  
Line 84: Line 86:
 
Compile the Octave package:
 
Compile the Octave package:
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
 
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
  --enable-static --enable-shared &&
+
  --libexecdir=/usr/lib64 --enable-static --enable-shared &&
 
  make
 
  make
  
Line 103: Line 105:
 
|-valign="top"
 
|-valign="top"
 
! Installed Directories:
 
! Installed Directories:
|/usr/lib/octave-{{Octave-Version}}, /usr/include/octave-{{Octave-Version}}
+
|/usr/lib/octave-{{Octave-Version}}, /usr/lib/octave/site/oct,
 +
/usr/lib/octave/{{Octave-Version}}/{site,api-v13}, /usr/include/octave-{{Octave-Version}}/octave,
 +
/usr/share/octave/{{Octave-Version}}/{m,site,api-v13}
 
|-valign="top"
 
|-valign="top"
 
! Installed Programs:
 
! Installed Programs:
|octave-bug, octave-config, octave
+
|octave-bug, octave-config, octave, mkoctfile
 
|-valign="top"
 
|-valign="top"
 
! Installed Libraries:
 
! Installed Libraries:

Revision as of 08:06, 6 February 2007

Download Source:

ftp://ftp.octave.org/pub/octave/octave-3.2.2.tar.bz2

Introduction to Octave

GNU Octave is a high-level language, primarily intended for numerical computations. It is a command line interface and solves linear and nonlinear problems numerically. Octave can be used to perform other numerical experiments using a language that is mostly compatible with Matlab.

Homepage: http://www.gnu.org/software/octave/octave.html

Dependencies

Optional

Configuration Information

The following are some options that you may want to pass to the configure script:

--with-f77: Use f77 to compile Fortran subroutines.
--without-hdf5: Don't use HDF5 files.
--without-fftw: Use included fftpack instead of installed fftw.
--with-blas=<lib>: Use the BLAS library found at <lib>.
--with-lapack=<lib>: Use the LAPACK library found at <lib>.
--enable-shared: Enables building the shared library. This requires shared BLAS and LAPACK libraries if you're using them as well.

Non-Multilib

Compile the Octave package:

./configure --prefix=/usr --libexecdir=/usr/lib --enable-static \
--enable-shared &&
make

Install Octave:

make install

Install the Octave documentation. The files in the doc/refcard directory are two-page Octave command reference cards. The others are full reference manuals.

install -v -m755 -d /usr/share/doc/octave-3.2.2/ &&
cp -v doc/refcard/*.{ps,pdf} /usr/share/doc/octave-3.2.2/ &&
cp -v doc/interpreter/*.{ps,pdf} /usr/share/doc/octave-3.2.2/ &&
cp -v doc/liboctave/*.{ps,pdf} /usr/share/doc/octave-3.2.2/

Multilib

32Bit

Compile the Octave package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr --libexecdir=/usr/lib \
--enable-static --enable-shared &&
make

Install Octave:

make install &&
mv -v /usr/bin/octave{,-32}

N32

Compile the Octave package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
--libexecdir=/usr/lib32 --enable-static --enable-shared &&
make

Install Octave:

make install &&
mv -v /usr/bin/octave{,-n32}

64Bit

Compile the Octave package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
--libexecdir=/usr/lib64 --enable-static --enable-shared &&
make

Install Octave:

make install &&
mv -v /usr/bin/octave{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/octave

Install the Octave documentation. The files in the doc/refcard directory are two-page Octave command reference cards. The others are full reference manuals.

install -v -m755 -d /usr/share/doc/octave-3.2.2/ &&
cp -v doc/refcard/*.{ps,pdf} /usr/share/doc/octave-3.2.2/ &&
cp -v doc/interpreter/*.{ps,pdf} /usr/share/doc/octave-3.2.2/ &&
cp -v doc/liboctave/*.{ps,pdf} /usr/share/doc/octave-3.2.2/

Contents

Installed Directories: /usr/lib/octave-3.2.2, /usr/lib/octave/site/oct,

/usr/lib/octave/3.2.2/{site,api-v13}, /usr/include/octave-3.2.2/octave, /usr/share/octave/3.2.2/{m,site,api-v13}

Installed Programs: octave-bug, octave-config, octave, mkoctfile
Installed Libraries: librcruft.{a,so}, liboctave.{a,so}, liboctinterp.{a,so}

Short Description

octave-bug: Creates a bug report and mails it to the bug-octave mailing list.
octave-config Reports some configuration values for Octave.
Octave The binary of interest.
Retrieved from "?title=Octave&oldid=7627"