Build from source: Difference between revisions

Jump to navigation Jump to search
499 bytes removed ,  18 December 2011
→‎Configure: default is --enable-shared and --disable-static this days
m (moved Build From Source to Build from source: Duplicate content)
(→‎Configure: default is --enable-shared and --disable-static this days)
Line 69: Line 69:


  ./configure --help
  ./configure --help
By default octave compiles as a static binary which cannot be extended with separately compiled C, C++, or Fortran functions such as those provided with OctaveForge (you might get an error like "ld: fatal: relocations remain against allocatable but non-writable sections" when compiling OctaveForge). For that you will need to configure octave with
./configure --enable-shared --disable-static
The <nowiki>--disable-static</nowiki> option is not necessary, but it will make your compile faster.


If you are building a personal version, you will want to install it into your home directory, or perhaps a subdirectory. Add the following to your configure line:
If you are building a personal version, you will want to install it into your home directory, or perhaps a subdirectory. Add the following to your configure line:

Navigation menu