Talk:Build from source: Difference between revisions
Jump to navigation
Jump to search
→Run the bootstrap script: fix typo
(→Run the bootstrap script: fix typo) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 104: | Line 104: | ||
$ ./bootstrap | $ ./bootstrap | ||
Running this script will result in the | Running this script will result in the creation 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. | |||
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 | |||
Octave and other binaries that people will want to run directly. | {| class="wikitable" | ||
prefix/lib/octave-version | |'''prefix/bin'''|| Octave and other binaries that people will want to run directly. | ||
Libraries like libcruft.a and liboctave.a. | |- | ||
prefix/octave-version/include/octave | |'''prefix/lib/octave-version'''||Libraries like libcruft.a and liboctave.a. | ||
Include files distributed with Octave. | |- | ||
prefix/share | |'''prefix/octave-version/include/octave'''||Include files distributed with Octave. | ||
Architecture-independent data files. | |- | ||
prefix/share/man/ | |'''prefix/share'''||Architecture-independent data files. | ||
Unix-style man pages describing Octave. | |- | ||
prefix/share/info | |'''prefix/share/man/man'''||Unix-style man pages describing Octave. | ||
Info files describing Octave. | |- | ||
prefix/share/octave/version/m | |'''prefix/share/info'''||Info files describing Octave. | ||
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 | |'''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. | ||
Executables to be run by Octave rather than the user. | |- | ||
prefix/lib/octave/version/oct/arch | |'''prefix/libexec/octave/version/exec/arch'''||Executables to be run by Octave rather than the user. | ||
Object files that will be dynamically loaded. | |- | ||
prefix/share/octave/version/imagelib | |'''prefix/lib/octave/version/oct/arch'''||Object files that will be dynamically loaded. | ||
Image files that are distributed with Octave. | |- | ||
|'''prefix/share/octave/version/imagelib'''||Image files that are distributed with Octave. | |||
|} |