Editing Talk:Build from source

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 104: Line 104:
  $ ./bootstrap
  $ ./bootstrap


Running this script will result in the creation of the configure script.  
Running this script will result in the createion of the configure script.  
The bootstrap script comes from gnulib, but is kept in the Octave source archive.  
The bootstrap script comes from gnulib, but is kept in the Octave source archive.  
It should be updated from the gnulib sources as necessary.
It should be updated from the gnulib sources as necessary.
Line 161: Line 161:
  $ make CFLAGS=-O CXXFLAGS=-O LDFLAGS=
  $ make CFLAGS=-O CXXFLAGS=-O LDFLAGS=


If you encounter errors while compiling Octave, first search the web to see if there is a workaround or solution for your problem. If not, see [http://www.gnu.org/software/octave/doc/interpreter/Reporting-Bugs.html Trouble], for information about how to report bugs.  
instead of just make. If you encounter errors while compiling Octave, first search the web to see if there is a workaround or solution for your problem. If not, see [http://www.gnu.org/software/octave/doc/interpreter/Reporting-Bugs.html Trouble], for information about how to report bugs.  


Once you have successfully compiled Octave, run
Once you have successfully compiled Octave, run
  $ make install
  $ make install


This will install a copy of Octave, its libraries, and its documentation in the destination directory. As distributed, Octave is installed in the following directories. In the table below, prefix defaults to /usr/local, 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-unknown-gnu’).  
This will install a copy of Octave, its libraries, and its documentation in the destination directory. As distributed, Octave is installed in the following directories. In the table below, prefix defaults to /usr/local, 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-unknown-gnu’).  
 
prefix/bin
{| class="wikitable"
Octave and other binaries that people will want to run directly.  
|'''prefix/bin'''|| Octave and other binaries that people will want to run directly.  
prefix/lib/octave-version
|-
Libraries like libcruft.a and liboctave.a.  
|'''prefix/lib/octave-version'''||Libraries like libcruft.a and liboctave.a.  
prefix/octave-version/include/octave
|-
Include files distributed with Octave.  
|'''prefix/octave-version/include/octave'''||Include files distributed with Octave.  
prefix/share
|-
Architecture-independent data files.  
|'''prefix/share'''||Architecture-independent data files.  
prefix/share/man/man1
|-
Unix-style man pages describing Octave.  
|'''prefix/share/man/man'''||Unix-style man pages describing Octave.  
prefix/share/info
|-
Info files describing Octave.  
|'''prefix/share/info'''||Info files describing Octave.  
prefix/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.  
|'''prefix/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.  
prefix/libexec/octave/version/exec/arch
|-
Executables to be run by Octave rather than the user.  
|'''prefix/libexec/octave/version/exec/arch'''||Executables to be run by Octave rather than the user.  
prefix/lib/octave/version/oct/arch
|-
Object files that will be dynamically loaded.  
|'''prefix/lib/octave/version/oct/arch'''||Object files that will be dynamically loaded.  
prefix/share/octave/version/imagelib
|-
Image files that are distributed with Octave.
|'''prefix/share/octave/version/imagelib'''||Image files that are distributed with Octave.
|}
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)