- publishing free software manuals
GNU Octave Manual
by John W. Eaton
Paperback (6"x9"), 324 pages, 4 figures
ISBN 0954161726
RRP £19.99 ($29.99)

Get a printed copy>>>

C.3.1 Installing Octave from a Binary Distribution

To install Octave from a binary distribution, execute the command

sh ./install-octave

in the top level directory of the distribution.

Binary distributions are normally compiled assuming that Octave will be installed in the following subdirectories of ‘/usr/local’.

‘bin’
Octave and other binaries that people will want to run directly.
‘lib’
Shared libraries that Octave needs in order to run. These files are not included if you are installing a statically linked version of Octave.
‘man/man1’
Unix-style man pages describing Octave.
‘info’
Info files describing Octave.
‘share/octave/version/m’
Function files distributed with Octave. This includes the Octave version, so that multiple versions of Octave may be installed at the same time.
‘libexec/octave/version/exec/arch
Executables to be run by Octave rather than the user.
‘libexec/octave/version/oct/arch
Object files that will be dynamically loaded.
‘share/octave/version/imagelib’
Image files that are distributed with Octave.

where version stands for the current version number of the interpreter, and arch is the type of computer on which Octave is installed (for example, ‘i586-pc-linux-gnu’).

If these directories don't exist, the script install-octave will create them for you. The installation script also creates the following subdirectories of ‘/usr/local’ that are intended for locally installed functions:

‘share/octave/site/m’
Locally installed M-files.
‘libexec/octave/site/exec/arch
Locally installed binaries intended to be run by Octave rather than by the user.
‘libexec/octave/site/octave/arch
Local object files that will be dynamically linked.

If it is not possible for you to install Octave in ‘/usr/local’, or if you would prefer to install it in a different directory, you can specify the name of the top level directory as an argument to the ‘install-octave’ script. For example:

sh ./install-octave /some/other/directory

will install Octave in subdirectories of the directory ‘/some/other/directory’.

ISBN 0954161726GNU Octave ManualSee the print edition