Mercurial > octave-nkf
annotate doc/interpreter/install.txi @ 14622:92659ad0d215
doc: Use @option macro where appropriate.
* install.txi: Change macro @code to @option for documenting command line
option.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Thu, 10 May 2012 22:27:50 -0700 |
parents | 8985cbbd2fe4 |
children | 72b8b39e12be |
rev | line source |
---|---|
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
14038
diff
changeset
|
1 @c Copyright (C) 1996-2012 John W. Eaton |
7018 | 2 @c |
3 @c This file is part of Octave. | |
4 @c | |
5 @c Octave is free software; you can redistribute it and/or modify it | |
6 @c under the terms of the GNU General Public License as published by the | |
7 @c Free Software Foundation; either version 3 of the License, or (at | |
8 @c your option) any later version. | |
9 @c | |
10 @c Octave is distributed in the hope that it will be useful, but WITHOUT | |
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 @c for more details. | |
14 @c | |
15 @c You should have received a copy of the GNU General Public License | |
16 @c along with Octave; see the file COPYING. If not, see | |
17 @c <http://www.gnu.org/licenses/>. | |
3294 | 18 |
7018 | 19 @c The text of this file appears in the file INSTALL in the Octave |
20 @c distribution, as well as in the Octave manual. | |
3294 | 21 |
22 @ifclear INSTALLONLY | |
4167 | 23 @node Installation |
3294 | 24 @appendix Installing Octave |
25 @end ifclear | |
26 | |
27 @ifset INSTALLONLY | |
28 | |
29 This file documents the installation of Octave. | |
30 | |
31 Octave is free software; you can redistribute it and/or modify it | |
32 under the terms of the GNU General Public License as published by the | |
33 Free Software Foundation. | |
34 | |
12973
b80b18f537ca
doc: Correct various Texinfo warnings about incorrect use of macros.
Rik <octave@nomad.inbox5.com>
parents:
12702
diff
changeset
|
35 @strong{Note}: This file is automatically generated from |
9031
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
36 @file{doc/interpreter/install.txi} in the Octave sources. To update |
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
37 the documentation make changes to the .txi source file rather than this |
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
38 derived file. |
7144 | 39 |
4167 | 40 @node Installation |
3294 | 41 @chapter Installing Octave |
42 @end ifset | |
43 | |
44 @cindex installing Octave | |
45 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
46 The procedure for installing Octave from source on a Unix-like system is |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
47 described below. Building on other platforms will follow similar |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
48 steps. Note that this description applies to Octave releases. Building |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
49 the development sources from the Mercurial archive requires additional |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
50 steps as described in @ref{Building the Development Sources}. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
51 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
52 @menu |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
53 * Build Dependencies:: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
54 * Running Configure and Make:: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
55 * Compiling Octave with 64-bit Indexing:: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
56 * Installation Problems:: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
57 @end menu |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
58 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
59 @node Build Dependencies |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
60 @section Build Dependencies |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
61 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
62 Octave is a fairly large program with many build dependencies. You may |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
63 be able to find pre-packaged versions of the dependencies distributed as |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
64 part of your system, or you may have to build some or all of them |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
65 yourself. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
66 |
14187
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
67 @menu |
14531
8985cbbd2fe4
doc: Periodic spellcheck of documentation
Rik <octave@nomad.inbox5.com>
parents:
14480
diff
changeset
|
68 * Obtaining the Dependencies Automatically:: |
14187
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
69 * Build Tools:: |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
70 * External Packages:: |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
71 @end menu |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
72 |
14531
8985cbbd2fe4
doc: Periodic spellcheck of documentation
Rik <octave@nomad.inbox5.com>
parents:
14480
diff
changeset
|
73 @node Obtaining the Dependencies Automatically |
8985cbbd2fe4
doc: Periodic spellcheck of documentation
Rik <octave@nomad.inbox5.com>
parents:
14480
diff
changeset
|
74 @subsection Obtaining the Dependencies Automatically |
14187
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
75 |
14480
3d628878e109
doc: Reword the manual section on getting build dependencies
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14187
diff
changeset
|
76 On some systems you can obtain many of Octave's build dependencies |
3d628878e109
doc: Reword the manual section on getting build dependencies
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14187
diff
changeset
|
77 automatically. The commands for doing this vary by system. Similarly, |
3d628878e109
doc: Reword the manual section on getting build dependencies
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14187
diff
changeset
|
78 the names of pre-compiled packages vary by system and do not always |
3d628878e109
doc: Reword the manual section on getting build dependencies
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14187
diff
changeset
|
79 match exactly the names listed in @ref{Build Tools} and @ref{External |
3d628878e109
doc: Reword the manual section on getting build dependencies
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14187
diff
changeset
|
80 Packages}. |
14187
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
81 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
82 You will usually need the development version of an external dependency |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
83 so that you get the libraries and header files for building software, |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
84 not just for running already compiled programs. These packages |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
85 typically have names that end with the suffix @code{-dev} or @code{-devel}. |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
86 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
87 On systems with @code{apt-get} (Debian, Ubuntu, etc.), you may be able |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
88 to install most of the tools and external packages using a command |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
89 similar to |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
90 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
91 @example |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
92 apt-get build-dep octave |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
93 @end example |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
94 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
95 @noindent |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
96 The specific package name may be @code{octave3.2} or @code{octave3.4}. |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
97 The set of required tools and external dependencies does not change |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
98 frequently, so it is not important that the version match exactly, but |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
99 you should use the most recent one available. |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
100 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
101 On systems with @code{yum} (Fedora, Red Hat, etc.), you may be able to |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
102 install most of the tools and external packages using a command similar to |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
103 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
104 @example |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
105 yum-builddep octave |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
106 @end example |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
107 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
108 @noindent |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
109 The @code{yum-builddep} utility is part of the @code{yum-utils} package. |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
110 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
111 For either type of system, the package name may include a version |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
112 number. The set of required tools and external dependencies does not |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
113 change frequently, so it is not important that the version exactly match |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
114 the version you are installing, but you should use the most recent one |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
115 available. |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
116 |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
117 @node Build Tools |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
118 @subsection Build Tools |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
119 |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
120 The following tools are required: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
121 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
122 @table @asis |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
123 @item C++, C, and Fortran compilers |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
124 The Octave sources are primarily written in C++, but some portions are |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
125 also written in C and Fortran. The Octave sources are intended to be |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
126 portable. Recent versions of the GNU compiler collection (GCC) should |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
127 work (@url{http://gcc.gnu.org}). If you use GCC, you should avoid |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
128 mixing versions. For example, be sure that you are not using the |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
129 obsolete @code{g77} Fortran compiler with modern versions of @code{gcc} |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
130 and @code{g++}. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
131 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
132 @item GNU Make |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
133 Tool for building software (@url{http://www.gnu.org/software/make}). |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
134 Octave's build system requires GNU Make. Other versions of Make will |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
135 not work. Fortunately, GNU Make is highly portable and easy to install. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
136 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
137 @item AWK, sed, and other Unix utilities |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
138 Basic Unix system utilities are required for building Octave. All will |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
139 be available with any modern Unix system and also on Windows with either |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
140 Cygwin or MinGW and MSYS. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
141 @end table |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
142 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
143 Additionally, the following tools may be needed: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
144 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
145 @table @asis |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
146 @item Bison |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
147 Parser generator (@url{http://www.gnu.org/software/bison}). |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
148 You will need Bison if you modify the @code{oct-parse.yy} source file or |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
149 if you delete the files that are generated from it. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
150 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
151 @item Flex |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
152 Lexer analyzer (@url{http://www.gnu.org/software/flex}). You will need |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
153 Flex if you modify the @code{lex.ll} source file or if you delete the |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
154 files that are generated from it. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
155 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
156 @item Autoconf |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
157 Package for software configuration |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
158 (@url{http://www.gnu.org/software/autoconf}). Autoconf is required if |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
159 you modify Octave's @code{configure.ac} file or other files that it |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
160 requires. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
161 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
162 @item Automake |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
163 Package for Makefile generation |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
164 (@url{http://www.gnu.org/software/automake}). Automake is required if |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
165 you modify Octave's @code{Makefile.am} files or other files that they |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
166 depend on. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
167 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
168 @item Libtool |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
169 Package for building software libraries |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
170 (@url{http://www.gnu.org/software/libtool}). Libtool is required by |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
171 Automake. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
172 @end table |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
173 |
14187
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
174 @node External Packages |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
175 @subsection External Packages |
53a9c916ba2f
doc: include tips for installing build dependencies on specific systems
John W. Eaton <jwe@octave.org>
parents:
14171
diff
changeset
|
176 |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
177 The following external packages are required: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
178 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
179 @table @asis |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
180 @item BLAS |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
181 Basic Linear Algebra Subroutine library |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
182 (@url{http://www.netlib.org/blas}). Accelerated BLAS libraries such as |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
183 ATLAS (@url{http://math-atlas.sourceforge.net}) are recommeded for |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
184 better performance. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
185 @item LAPACK |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
186 Linear Algebra Package (@url{http://www.netlib.org/lapack}). |
14171
2ced2f59f523
doc: miscellaneous documentation improvements
Rik <octave@nomad.inbox5.com>
parents:
14150
diff
changeset
|
187 @item PCRE |
2ced2f59f523
doc: miscellaneous documentation improvements
Rik <octave@nomad.inbox5.com>
parents:
14150
diff
changeset
|
188 The Perl Compatible Regular Expression library (http://www.pcre.org). |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
189 @end table |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
190 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
191 The following external package is optional but strongly recommended: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
192 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
193 @table @asis |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
194 @item GNU Readline |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
195 Command-line editing library (@url{www.gnu.org/s/readline}). |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
196 @end table |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
197 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
198 If you wish to build Octave without GNU readline installed, you must use |
14622
92659ad0d215
doc: Use @option macro where appropriate.
Rik <octave@nomad.inbox5.com>
parents:
14531
diff
changeset
|
199 the @option{--disable-readline} option when running the configure script. |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
200 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
201 The following external software packages are optional but recommended: |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
202 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
203 @table @asis |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
204 @item ARPACK |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
205 Library for the solution of large-scale eigenvalue problems |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
206 (@url{http://forge.scilab.org/index.php/p/arpack-ng}). ARPACK is |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
207 required to provide the functions @code{eigs} and @code{svds}. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
208 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
209 @item cURL |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
210 Library for transferring data with URL syntax |
14171
2ced2f59f523
doc: miscellaneous documentation improvements
Rik <octave@nomad.inbox5.com>
parents:
14150
diff
changeset
|
211 (@url{http://curl.haxx.se}). cURL is required to provide the |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
212 @code{urlread} and @code{urlwrite} functions and the @code{ftp} class. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
213 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
214 @item FFTW3 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
215 Library for computing discrete Fourier transforms |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
216 (@url{http://www.fftw.org}). FFTW3 is used to provide better |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
217 performance for functions that compute discrete Fourier transforms |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
218 (@code{fft}, @code{ifft}, @code{fft2}, etc.) |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
219 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
220 @item FLTK |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
221 Portable GUI toolkit (@url{http://www.fltk.org}). FLTK is currently |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
222 used to provide windows for Octave's OpenGL-based graphics functions. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
223 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
224 @item fontconfig |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
225 Library for configuring and customizing font access |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
226 (@url{http://www.freedesktop.org/wiki/Software/fontconfig}). Fontconfig |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
227 is used to manage fonts for Octave's OpenGL-based graphics functions. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
228 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
229 @item FreeType |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
230 Portable font engine (@url{http://www.freetype.org}). FreeType is used |
14171
2ced2f59f523
doc: miscellaneous documentation improvements
Rik <octave@nomad.inbox5.com>
parents:
14150
diff
changeset
|
231 to perform font rendering for Octave's OpenGL-based graphics functions. |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
232 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
233 @item GLPK |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
234 GNU Linear Programming Kit (@url{http://www.gnu.org/software/glpk}). |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
235 GPLK is required for the function @code{glpk}. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
236 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
237 @item gnuplot |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
238 Interactive graphics program (@url{http://www.gnuplot.info}). gnuplot |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
239 is currently the default graphics renderer for Octave. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
240 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
241 @item GraphicsMagick++ |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
242 Image processing library (@url{http://www.graphicsmagick.org}). |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
243 GraphicsMagick++ is used to provide the @code{imread} and @code{imwrite} |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
244 functions. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
245 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
246 @item HDF5 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
247 Library for manipulating portable data files |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
248 (@url{http://www.hdfgroup.org/HDF5}). HDF5 is required for Octave's |
14171
2ced2f59f523
doc: miscellaneous documentation improvements
Rik <octave@nomad.inbox5.com>
parents:
14150
diff
changeset
|
249 @code{load} and @code{save} commands to read and write HDF data files. |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
250 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
251 @item OpenGL |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
252 API for portable 2D and 3D graphics (@url{http://www.opengl.org}). An |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
253 OpenGL implementation is required to provide Octave's OpenGL-based |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
254 graphics functions. Octave's OpenGL-based graphics functions usually |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
255 outperform the gnuplot-based graphics functions because plot data can be |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
256 rendered directly instead of sending data and commands to gnuplot for |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
257 interpretation and rendering. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
258 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
259 @item Qhull |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
260 Computational geometry library (@url{http://www.qhull.org}). Qhull is |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
261 required to provide the functions @code{convhull}, @code{convhulln}, |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
262 @code{delaunay}, @code{delaunay3}, @code{delaunayn}, @code{voronoi}, and |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
263 @code{voronoin}. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
264 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
265 @item QRUPDATE |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
266 QR factorization updating library |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
267 (@url{http://sourceforge.net/projects/qrupdate}). QRUPDATE is used to |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
268 provide improved performance for the functions @code{qrdelete}, |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
269 @code{qrinsert}, @code{qrshift}, and @code{qrupdate}. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
270 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
271 @item SuiteSparse |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
272 Sparse matrix factorization library |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
273 (@url{http://www.cise.ufl.edu/research/sparse/SuiteSparse}). |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
274 SuiteSparse is required to provide sparse matrix factorizations and |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
275 solution of linear equations for sparse systems. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
276 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
277 @item zlib |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
278 Data compression library (@url{http://zlib.net}). The zlib library is |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
279 required for Octave's @code{load} and @code{save} commands to handle |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
280 compressed data, including @sc{Matlab} v5 MAT files. |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
281 @end table |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
282 |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
283 @node Running Configure and Make |
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
284 @section Running Configure and Make |
3294 | 285 |
286 @itemize @bullet | |
287 @item | |
288 Run the shell script @file{configure}. This will determine the features | |
289 your system has (or doesn't have) and create a file named | |
290 @file{Makefile} from each of the files named @file{Makefile.in}. | |
291 | |
292 Here is a summary of the configure options that are most frequently used | |
293 when building Octave: | |
294 | |
295 @table @code | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
296 @item --help |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
297 Print a summary of the options recognized by the configure script. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
298 |
3294 | 299 @item --prefix=@var{prefix} |
300 Install Octave in subdirectories below @var{prefix}. The default value | |
301 of @var{prefix} is @file{/usr/local}. | |
302 | |
303 @item --srcdir=@var{dir} | |
304 Look for Octave sources in the directory @var{dir}. | |
305 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
306 @item --enable-64 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
307 This is an @strong{experimental} option to enable Octave to use 64-bit |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
308 integers for array dimensions and indexing on 64-bit platforms. You |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
309 probably don't want to use this option unless you know what you are |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
310 doing. @xref{Compiling Octave with 64-bit Indexing}, for more details |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
311 about building Octave with this option. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
312 |
7091 | 313 @item --enable-bounds-check |
314 Enable bounds checking for indexing operators in the internal array | |
315 classes. This option is primarily used for debugging Octave. Building | |
8325
b93ac0586e4b
spelling corrections
Brian Gough<bjg@network-theory.co.uk>
parents:
7144
diff
changeset
|
316 Octave with this option has a negative impact on performance and is not |
7091 | 317 recommended for general use. |
3294 | 318 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
319 @item --disable-docs |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
320 Disable building all forms of the documentation (Info, PDF, HTML). The |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
321 default is to build documentation, but your system will need functioning |
14038
b0cdd60db5e5
doc: Grammarcheck documentation ahead of 3.6.0 release.
Rik <octave@nomad.inbox5.com>
parents:
14018
diff
changeset
|
322 Texinfo and @TeX{} installs for this to succeed. |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
323 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
324 @item --enable-float-truncate |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
325 This option allows for truncation of intermediate floating point results |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
326 in calculations. It is only necessary for certain platforms. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
327 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
328 @item --enable-readline |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
329 Use the readline library to provide for editing of the command line in |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
330 terminal environments. This option is on by default. |
3294 | 331 |
332 @item --enable-shared | |
7091 | 333 Create shared libraries (this is the default). If you are planning to |
334 use the dynamic loading features, you will probably want to use this | |
335 option. It will make your @file{.oct} files much smaller and on some | |
336 systems it may be necessary to build shared libraries in order to use | |
337 dynamically linked functions. | |
3294 | 338 |
339 You may also want to build a shared version of @code{libstdc++}, if your | |
7081 | 340 system doesn't already have one. |
3294 | 341 |
342 @item --enable-dl | |
343 Use @code{dlopen} and friends to make Octave capable of dynamically | |
7091 | 344 linking externally compiled functions (this is the default if |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
345 @option{--enable-shared} is specified). This option only works on |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
346 systems that actually have these functions. If you plan on using this |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
347 feature, you should probably also use @option{--enable-shared} to reduce |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
348 the size of your @file{.oct} files. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
349 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
350 @item --with-blas=<lib> |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
351 By default, configure looks for the best @sc{blas} matrix libraries on |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
352 your system, including optimized implementations such as the free ATLAS |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
353 3.0, as well as vendor-tuned libraries. (The use of an optimized |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
354 @sc{blas} will generally result in several-times faster matrix |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
355 operations.) Use this option to specify a particular @sc{blas} library |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
356 that Octave should use. |
3294 | 357 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
358 @item --with-lapack=<lib> |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
359 By default, configure looks for the best @sc{lapack} matrix libraries on |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
360 your system, including optimized implementations such as the free ATLAS |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
361 3.0, as well as vendor-tuned libraries. (The use of an optimized |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
362 @sc{lapack} will generally result in several-times faster matrix |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
363 operations.) Use this option to specify a particular @sc{lapack} |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
364 library that Octave should use. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
365 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
366 @item --with-magick=<lib> |
12575
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12462
diff
changeset
|
367 Select the library to use for image I/O@. The two possible values are |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
368 "GraphicsMagick" (default) or "ImageMagick". |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
369 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
370 @item --with-sepchar=<char> |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
371 Use <char> as the path separation character. This option can help when |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
372 running Octave on non-Unix systems. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
373 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
374 @item --without-amd |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
375 Don't use @sc{amd}, disable some sparse matrix functionality. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
376 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
377 @item --without-camd |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
378 Don't use @sc{camd}, disable some sparse matrix functionality. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
379 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
380 @item --without-colamd |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
381 Don't use @sc{colamd}, disable some sparse matrix functionality. |
7091 | 382 |
383 @item --without-ccolamd | |
10828
322f43e0e170
Grammarcheck .txi documentation files.
Rik <octave@nomad.inbox5.com>
parents:
10711
diff
changeset
|
384 Don't use @sc{ccolamd}, disable some sparse matrix functionality. |
7091 | 385 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
386 @item --without-cholmod |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
387 Don't use @sc{cholmod}, disable some sparse matrix functionality. |
7091 | 388 |
389 @item --without-curl | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
390 Don't use the cURL library, disable the ftp objects, @code{urlread} and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
391 @code{urlwrite} functions. |
3294 | 392 |
7091 | 393 @item --without-cxsparse |
10828
322f43e0e170
Grammarcheck .txi documentation files.
Rik <octave@nomad.inbox5.com>
parents:
10711
diff
changeset
|
394 Don't use @sc{cxsparse}, disable some sparse matrix functionality. |
7091 | 395 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
396 @item --without-fftw3 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
397 Use the included @sc{fftpack} library for computing Fast Fourier |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
398 Transforms instead of the @sc{fftw3} library. |
7091 | 399 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
400 @item --without-fftw3f |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
401 Use the included @sc{fftpack} library for computing Fast Fourier |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
402 Transforms instead of the @sc{fftw3} library when operating on single |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
403 precision (float) values. |
3294 | 404 |
7091 | 405 @item --without-glpk |
10828
322f43e0e170
Grammarcheck .txi documentation files.
Rik <octave@nomad.inbox5.com>
parents:
10711
diff
changeset
|
406 Don't use the @sc{glpk} library for linear programming. |
7091 | 407 |
408 @item --without-hdf5 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
409 Don't use the @sc{hdf5} library, disable reading and writing of |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
410 @sc{hdf5} files. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
411 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
412 @item --without-opengl |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
413 Don't use OpenGL, disable native graphics toolkit for plotting. You |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
414 will need @code{gnuplot} installed in order to make plots. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
415 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
416 @item --without-qhull |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
417 Don't use Qhull, disable @code{delaunay}, @code{convhull}, and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
418 related functions. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
419 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
420 @item --without-qrupdate |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
421 Don't use @sc{qrupdate}, disable QR and Cholesky update functions. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
422 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
423 @item --without-umfpack |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
424 Don't use @sc{umfpack}, disable some sparse matrix functionality. |
7091 | 425 |
426 @item --without-zlib | |
427 Don't use the zlib library, disable data file compression and support | |
428 for recent MAT file formats. | |
429 | |
8791
d943e26d30e2
Add documentation for configure options "--without-framework-carbon" and "--without-framework-opengl".
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8481
diff
changeset
|
430 @item --without-framework-carbon |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
431 Don't use framework Carbon headers, libraries, or specific source code |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
432 even if the configure test succeeds (the default is to use Carbon |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
433 framework if available). This is a platform specific configure option |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
434 for Mac systems. |
8791
d943e26d30e2
Add documentation for configure options "--without-framework-carbon" and "--without-framework-opengl".
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8481
diff
changeset
|
435 |
d943e26d30e2
Add documentation for configure options "--without-framework-carbon" and "--without-framework-opengl".
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8481
diff
changeset
|
436 @item --without-framework-opengl |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
437 Don't use framework OpenGL headers, libraries, or specific source code |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
438 even if the configure test succeeds. If this option is given then |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
439 OpenGL headers and libraries in standard system locations are tested |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
440 (the default value is @option{--with-framework-opengl}). This is a |
8791
d943e26d30e2
Add documentation for configure options "--without-framework-carbon" and "--without-framework-opengl".
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8481
diff
changeset
|
441 platform specific configure option for Mac systems. |
d943e26d30e2
Add documentation for configure options "--without-framework-carbon" and "--without-framework-opengl".
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8481
diff
changeset
|
442 |
3294 | 443 @end table |
444 | |
9031
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
445 See the file @file{INSTALL} for more general information about the |
1052a66078cf
Documentation cleanup of top-level Octave directory (READMEs, INSTALL)
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
446 command line options used by configure. That file also contains |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
447 instructions for compiling in a directory other than the one where |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
448 the source is located. |
3294 | 449 |
450 @item | |
451 Run make. | |
452 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
453 You will need a recent version of GNU Make as Octave relies on certain |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
454 features not generally available in all versions of make. Modifying |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
455 Octave's makefiles to work with other make programs is probably not |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
456 worth your time; instead, we simply recommend installing GNU Make. |
3294 | 457 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
458 There are currently two options for plotting in Octave: (1) the external |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
459 program gnuplot, or (2) the internal graphics engine using OpenGL and |
12575
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12462
diff
changeset
|
460 FLTK@. Gnuplot is a command-driven interactive function plotting |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
461 program. Gnuplot is copyrighted, but freely distributable. As of |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
462 Octave release 3.4, gnuplot is the default option for plotting. But, |
12702
013cd94d8d7f
doc: Spelling fixes for various documentation files
John Bradshaw <john@johnbradshaw.org>
parents:
12575
diff
changeset
|
463 the internal graphics engine is nearly 100% compatible, certainly for |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
464 most ordinary plots, and users are encouraged to test it. It is |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
465 anticipated that the internal engine will become the default option at |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
466 the next major release of Octave. |
3294 | 467 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
468 To compile Octave, you will need a recent version of @code{g++} or other |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
469 ANSI C++ compiler. In addition, you will need a Fortran 77 compiler or |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
470 @code{f2c}. If you use @code{f2c}, you will need a script like |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
471 @code{fort77} that works like a normal Fortran compiler by combining |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
472 @code{f2c} with your C compiler in a single script. |
3294 | 473 |
474 If you plan to modify the parser you will also need GNU @code{bison} and | |
475 @code{flex}. If you modify the documentation, you will need GNU | |
11291
5abe6815aa5e
install.txi: delete obsolete statement about needing a patch for makeinfo
John W. Eaton <jwe@octave.org>
parents:
10846
diff
changeset
|
476 Texinfo. |
3294 | 477 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
478 GNU Make, @code{gcc} (and @code{libstdc++}), @code{gnuplot}, |
3294 | 479 @code{bison}, @code{flex}, and Texinfo are all available from many |
480 anonymous ftp archives. The primary site is @url{ftp.gnu.org}, but it | |
481 is often very busy. A list of sites that mirror the software on | |
482 @url{ftp.gnu.org} is available by anonymous ftp from | |
483 @url{ftp://ftp.gnu.org/pub/gnu/GNUinfo/FTP}. | |
484 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
485 Octave requires approximately 1.4 GB of disk storage to unpack and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
486 compile from source (significantly less, 400 MB, if you don't compile |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
487 with debugging symbols). To compile without debugging symbols try the |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
488 command |
3294 | 489 |
490 @example | |
491 make CFLAGS=-O CXXFLAGS=-O LDFLAGS= | |
492 @end example | |
493 | |
494 @noindent | |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
495 instead of just @command{make}. |
3294 | 496 |
497 @item | |
498 If you encounter errors while compiling Octave, first check the list of | |
499 known problems below to see if there is a workaround or solution for | |
500 your problem. If not, | |
501 @ifclear INSTALLONLY | |
502 see @ref{Trouble}, | |
503 @end ifclear | |
504 @ifset INSTALLONLY | |
505 see the file BUGS | |
506 @end ifset | |
507 for information about how to report bugs. | |
508 | |
509 @item | |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
510 Once you have successfully compiled Octave, run @code{make install}. |
3294 | 511 |
8481
00df69d7e698
[docs] capitalize Octave consistently
Brian Gough <bjg@gnu.org>
parents:
8325
diff
changeset
|
512 This will install a copy of Octave, its libraries, and its documentation |
3294 | 513 in the destination directory. As distributed, Octave is installed in |
514 the following directories. In the table below, @var{prefix} defaults to | |
515 @file{/usr/local}, @var{version} stands for the current version number | |
516 of the interpreter, and @var{arch} is the type of computer on which | |
517 Octave is installed (for example, @samp{i586-unknown-gnu}). | |
518 | |
519 @table @file | |
520 @item @var{prefix}/bin | |
521 Octave and other binaries that people will want to run directly. | |
522 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
523 @item @var{prefix}/lib/octave-@var{version} |
3294 | 524 Libraries like libcruft.a and liboctave.a. |
525 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
526 @item @var{prefix}/octave-@var{version}/include/octave |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
527 Include files distributed with Octave. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
528 |
3294 | 529 @item @var{prefix}/share |
530 Architecture-independent data files. | |
531 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
532 @item @var{prefix}/share/man/man1 |
3294 | 533 Unix-style man pages describing Octave. |
534 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
535 @item @var{prefix}/share/info |
3294 | 536 Info files describing Octave. |
537 | |
538 @item @var{prefix}/share/octave/@var{version}/m | |
539 Function files distributed with Octave. This includes the Octave | |
540 version, so that multiple versions of Octave may be installed at the | |
541 same time. | |
542 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
543 @item @var{prefix}/libexec/octave/@var{version}/exec/@var{arch} |
3294 | 544 Executables to be run by Octave rather than the user. |
545 | |
546 @item @var{prefix}/lib/octave/@var{version}/oct/@var{arch} | |
547 Object files that will be dynamically loaded. | |
548 | |
549 @item @var{prefix}/share/octave/@var{version}/imagelib | |
550 Image files that are distributed with Octave. | |
551 @end table | |
552 @end itemize | |
553 | |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
554 @node Compiling Octave with 64-bit Indexing |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
555 @section Compiling Octave with 64-bit Indexing |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
556 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
557 Note: the following only applies to systems that have 64-bit pointers. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
558 Configuring Octave with @option{--enable-64} cannot magically make a |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
559 32-bit system have a 64-bit address space. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
560 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
561 On 64-bit systems, Octave is limited to (approximately) the following |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
562 array sizes when using the default 32-bit indexing mode: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
563 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
564 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
565 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
566 double: 16GB |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
567 single: 8GB |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
568 uint64, int64: 16GB |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
569 uint32, int32: 8GB |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
570 uint16, int16: 4GB |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
571 uint8, int8: 2GB |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
572 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
573 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
574 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
575 In each case, the limit is really (approximately) @math{2^{31}} elements |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
576 because of the default type of the value used for indexing arrays |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
577 (signed 32-bit integer, corresponding to the size of a Fortran INTEGER |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
578 value). |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
579 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
580 Trying to create larger arrays will produce the following error: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
581 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
582 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
583 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
584 octave:1> a = zeros (1024*1024*1024*3, 1, 'int8'); |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
585 error: memory exhausted or requested size too large |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
586 for range of Octave's index type -- |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
587 trying to return to prompt |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
588 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
589 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
590 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
591 @noindent |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
592 You will obtain this error even if your system has enough memory to |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
593 create this array (4 GB in the above case). |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
594 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
595 To use arrays larger than 2 GB, Octave has to be configured with the |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
596 option @option{--enable-64}. This option is experimental and you are |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
597 encouraged to submit bug reports if you find a problem. With this |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
598 option, Octave will use 64-bit integers internally for array dimensions |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
599 and indexing. However, all numerical libraries used by Octave will |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
600 @strong{also} need to use 64-bit integers for array dimensions and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
601 indexing. In most cases, this means they will need to be compiled from |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
602 source since most (all?) distributions which package these libraries |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
603 compile them with the default Fortran integer size, which is normally |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
604 32-bits wide. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
605 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
606 The following instructions were tested with the development version of |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
607 Octave and GCC 4.3.4 on an x86_64 Debian system. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
608 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
609 The versions listed below are the versions used for testing. If newer |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
610 versions of these packages are available, you should try to use them, |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
611 although there may be some differences. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
612 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
613 All libraries and header files will be installed in subdirectories of |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
614 @code{$prefix64} (you must choose the location of this directory). |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
615 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
616 @itemize @bullet |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
617 @item @sc{blas} and @sc{lapack} (@url{http://www.netlib.org/lapack}) |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
618 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
619 Reference versions for both libraries are included in the reference |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
620 @sc{lapack} 3.2.1 distribution from @url{netlib.org}. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
621 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
622 @itemize @minus |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
623 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
624 Copy the file @file{make.inc.example} and name it @file{make.inc}. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
625 The options @option{-fdefault-integer-8} and @option{-fPIC} (on 64-bit |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
626 CPU) have to be added to the variable @code{OPTS} and @code{NOOPT}. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
627 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
628 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
629 Once you have compiled this library make sure that you use it for |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
630 compiling Suite Sparse and Octave. In the following we assume that |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
631 you installed the @sc{lapack} library as $prefix64/lib/liblapack.a. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
632 @end itemize |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
633 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
634 @item QRUPDATE (@url{http://sourceforge.net/projects/qrupdate}) |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
635 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
636 In the @file{Makeconf} file: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
637 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
638 @itemize @minus |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
639 @item |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
640 Add @option{-fdefault-integer-8} to @env{FFLAGS}. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
641 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
642 @item |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
643 Adjust the @sc{blas} and @sc{lapack} variables as needed if your 64-bit |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
644 aware @sc{blas} and @sc{lapack} libraries are in a non-standard |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
645 location. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
646 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
647 @item |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
648 Set @env{PREFIX} to the top-level directory of your install tree. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
649 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
650 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
651 Run @code{make solib} to make a shared library. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
652 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
653 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
654 Run @code{make install} to install the library. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
655 @end itemize |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
656 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
657 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
658 SuiteSparse (@url{http://www.cise.ufl.edu/research/sparse/SuiteSparse}) |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
659 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
660 @itemize @minus |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
661 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
662 In @file{UFconfig/UFconfig.mk} use the following options for |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
663 @env{CFLAGS} and @env{F77FLAGS}: |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
664 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
665 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
666 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
667 CC = gcc |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
668 CFLAGS = -fPIC -O -DLP64 -DLONGBLAS='long int' -DLONG='long int' |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
669 F77 = gfortran |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
670 F77FLAGS = -fPIC -O -fdefault-integer-8 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
671 BLAS = -L$BLAS/lib -lblas -lgfortran" |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
672 LAPACK = -L$LAPACK/lib -llapack" |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
673 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
674 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
675 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
676 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
677 Disable the GPL-incompatible @code{METIS} library: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
678 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
679 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
680 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
681 CHOLMOD_CONFIG = -DNPARTITION |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
682 SPQR_CONFIG = -DNPARTITION |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
683 METIS_PATH = |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
684 METIS = |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
685 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
686 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
687 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
688 @item |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
689 Disable the @code{DI} versions of the @code{CHOLMOD} library files by |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
690 setting |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
691 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
692 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
693 OBJ = $(DL) |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
694 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
695 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
696 @noindent |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
697 in @file{CHOLMOD/Lib/Makefile}. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
698 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
699 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
700 Disable the @code{DI} versions of the @code{CHOLMOD} tests by commenting |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
701 out or deleting the following lines in @file{CHOLMOD/Demo/Makefile}: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
702 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
703 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
704 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
705 ./cholmod_demo < Matrix/bcsstk01.tri |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
706 ./cholmod_demo < Matrix/lp_afiro.tri |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
707 ./cholmod_demo < Matrix/can___24.mtx |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
708 ./cholmod_demo < Matrix/c.tri |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
709 ./cholmod_simple < Matrix/c.tri |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
710 ./cholmod_simple < Matrix/can___24.mtx |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
711 ./cholmod_simple < Matrix/bcsstk01.tri |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
712 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
713 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
714 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
715 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
716 Run @command{make} to build the libraries. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
717 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
718 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
719 The SuiteSparse @file{Makefile} does not have an install target so |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
720 you must install the files by hand: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
721 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
722 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
723 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
724 mkdir $prefix64/include/suitesparse |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
725 cp UFconfig/UFconfig.h $prefix64/include/suitesparse |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
726 for d in AMD BTF CAMD CCOLAMD \ |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
727 CHOLMOD COLAMD CXSparse UMFPACK; do |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
728 cp $d/Lib/lib*a $prefix64/lib |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
729 cp $d/Include/*h $prefix64/include/suitesparse |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
730 done |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
731 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
732 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
733 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
734 @item |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
735 You can generate shared versions of these libraries by doing the |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
736 following in the @file{$prefix64/lib} directory: |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
737 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
738 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
739 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
740 top=$(pwd) |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
741 for f in *.a; do |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
742 mkdir tmp |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
743 cd tmp |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
744 ar vx ../$f |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
745 gcc -shared -o ../$@{f%%.a@}.so *.o |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
746 cd $top |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
747 rm -rf tmp |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
748 done |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
749 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
750 @end example |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
751 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
752 @end itemize |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
753 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
754 @item ATLAS instead of reference @sc{blas} and @sc{lapack} |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
755 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
756 Suggestions on how to compile ATLAS would be most welcome. |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
757 |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
758 @item @sc{glpk} |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
759 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
760 Suggestions on how to compile @sc{glpk} would be most welcome. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
761 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
762 @item Qhull (@url{http://www.qhull.org}) |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
763 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
764 Suggestions on how to compile Qhull would be most welcome. |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
765 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
766 @item Octave |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
767 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
768 Octave's 64-bit index support is activated with the configure option |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
769 @option{--enable-64}. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
770 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
771 @example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
772 @group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
773 ./configure \ |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
774 LD_LIBRARY_PATH="$prefix64/lib" \ |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
775 CPPFLAGS="-I$prefix64/include" LDFLAGS="-L$prefix64/lib" \ |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
776 --enable-64 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
777 @end group |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
778 @end example |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
779 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
780 You must ensure that all Fortran sources except those in the |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
781 @file{libcruft/ranlib} directory are compiled such that INTEGERS are |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
782 8-bytes wide. If you are using gfortan, the configure script should |
12575
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12462
diff
changeset
|
783 automatically set the Makefile variable @w{@env{F77_INTEGER_8_FLAG}} to |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
784 @option{-fdefault-integer-8}. If you are using another compiler, you |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
785 must set this variable yourself. You should NOT set this flag in |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
786 @env{FFLAGS}, otherwise the files in @file{libcruft/ranlib} will be |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
787 miscompiled. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
788 |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
789 @item Other dependencies |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
790 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
791 Probably nothing special needs to be done for the following |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
792 dependencies. If you discover that something does need to be done, |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
793 please submit a bug report. |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
794 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
795 @itemize @minus |
12462
e4dbfe3019b1
Use PCRE regular expressions throughout Octave.
Rik <octave@nomad.inbox5.com>
parents:
12218
diff
changeset
|
796 @item pcre |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
797 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
798 @item zlib |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
799 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
800 @item hdf5 |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
801 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
802 @item fftw3 |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
803 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
804 @item cURL |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
805 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
806 @item GraphicsMagick++ |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
807 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
808 @item OpenGL |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
809 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
810 @item freetype |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
811 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
812 @item fontconfig |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
813 |
11302
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
814 @item fltk |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
815 @end itemize |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
816 |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
817 @end itemize |
e971caa4c2bb
doc/interpreter/install.txi: explain how to compile Octave with 64-bit indexing
John W. Eaton <jwe@octave.org>
parents:
11291
diff
changeset
|
818 |
4167 | 819 @node Installation Problems |
14150
87f06b9990bb
doc: improve documentation for building Octave
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
820 @section Installation Problems |
3294 | 821 |
822 This section contains a list of problems (and some apparent problems | |
823 that don't really mean anything is wrong) that may show up during | |
824 installation of Octave. | |
825 | |
826 @itemize @bullet | |
827 @item | |
828 On some SCO systems, @code{info} fails to compile if | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
829 @w{@code{HAVE_TERMIOS_H}} is defined in @file{config.h}. Simply |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
830 removing the definition from @file{info/config.h} should allow it to |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
831 compile. |
3294 | 832 |
833 @item | |
834 If @code{configure} finds @code{dlopen}, @code{dlsym}, @code{dlclose}, | |
835 and @code{dlerror}, but not the header file @file{dlfcn.h}, you need to | |
836 find the source for the header file and install it in the directory | |
837 @file{usr/include}. This is reportedly a problem with Slackware 3.1. | |
838 For Linux/GNU systems, the source for @file{dlfcn.h} is in the | |
839 @code{ldso} package. | |
840 | |
841 @item | |
842 Building @file{.oct} files doesn't work. | |
843 | |
844 You should probably have a shared version of @code{libstdc++}. A patch | |
845 is needed to build shared versions of version 2.7.2 of @code{libstdc++} | |
846 on the HP-PA architecture. You can find the patch at | |
847 @url{ftp://ftp.cygnus.com/pub/g++/libg++-2.7.2-hppa-gcc-fix}. | |
848 | |
849 @item | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
850 On some DEC alpha systems there may be a problem with the @code{libdxml} |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
851 library, resulting in floating point errors and/or segmentation faults |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
852 in the linear algebra routines called by Octave. If you encounter such |
3464 | 853 problems, then you should modify the configure script so that |
9209
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9081
diff
changeset
|
854 @w{@code{SPECIAL_MATH_LIB}} is not set to @code{-ldxml}. |
3464 | 855 |
856 @item | |
3294 | 857 On FreeBSD systems Octave may hang while initializing some internal |
858 constants. The fix appears to be to use | |
859 | |
860 @example | |
861 options GPL_MATH_EMULATE | |
862 @end example | |
863 | |
864 @noindent | |
865 rather than | |
866 | |
867 @example | |
868 options MATH_EMULATE | |
869 @end example | |
870 | |
871 @noindent | |
872 in the kernel configuration files (typically found in the directory | |
873 @file{/sys/i386/conf}. After making this change, you'll need to rebuild | |
874 the kernel, install it, and reboot. | |
875 | |
876 @item | |
877 If you encounter errors like | |
878 | |
6670 | 879 @example |
3294 | 880 @group |
881 passing `void (*)()' as argument 2 of | |
882 `octave_set_signal_handler(int, void (*)(int))' | |
883 @end group | |
6670 | 884 @end example |
3294 | 885 |
886 @noindent | |
887 or | |
888 | |
6670 | 889 @example |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
890 @group |
7081 | 891 warning: ANSI C++ prohibits conversion from `(int)' |
9209
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9081
diff
changeset
|
892 to `(@dots{})' |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
893 @end group |
6670 | 894 @end example |
3294 | 895 |
896 @noindent | |
897 while compiling @file{sighandlers.cc}, you may need to edit some files | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
898 in the @code{gcc} include subdirectory to add proper prototypes for |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
899 functions there. For example, Ultrix 4.2 needs proper declarations for |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
900 the @code{signal} function and the @w{@code{SIG_IGN}} macro in the file |
3294 | 901 @file{signal.h}. |
902 | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
903 On some systems the @w{@code{SIG_IGN}} macro is defined to be something |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
904 like this: |
3294 | 905 |
906 @example | |
907 #define SIG_IGN (void (*)())1 | |
908 @end example | |
909 | |
910 @noindent | |
911 when it should really be something like: | |
912 | |
913 @example | |
914 #define SIG_IGN (void (*)(int))1 | |
915 @end example | |
916 | |
917 @noindent | |
918 to match the prototype declaration for the @code{signal} function. This | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
919 change should also be made for the @w{@code{SIG_DFL}} and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
920 @w{@code{SIG_ERR}} symbols. It may be necessary to change the |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
921 definitions in @file{sys/signal.h} as well. |
3294 | 922 |
923 The @code{gcc} @code{fixincludes} and @code{fixproto} scripts should | |
924 probably fix these problems when @code{gcc} installs its modified set of | |
925 header files, but I don't think that's been done yet. | |
926 | |
927 @strong{You should not change the files in @file{/usr/include}}. You | |
928 can find the @code{gcc} include directory tree by running the command | |
929 | |
930 @example | |
931 gcc -print-libgcc-file-name | |
932 @end example | |
933 | |
934 @noindent | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
935 The directory of @code{gcc} include files normally begins in the same |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
936 directory that contains the file @file{libgcc.a}. |
3294 | 937 |
938 @item | |
939 Some of the Fortran subroutines may fail to compile with older versions | |
940 of the Sun Fortran compiler. If you get errors like | |
941 | |
6670 | 942 @example |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
943 @group |
3294 | 944 zgemm.f: |
10599
d0e0bb2ebebb
Remove tabs in .txi files causing problems with pdf formatting.
Rik <octave@nomad.inbox5.com>
parents:
9895
diff
changeset
|
945 zgemm: |
3294 | 946 warning: unexpected parent of complex expression subtree |
947 zgemm.f, line 245: warning: unexpected parent of complex | |
948 expression subtree | |
949 warning: unexpected parent of complex expression subtree | |
950 zgemm.f, line 304: warning: unexpected parent of complex | |
951 expression subtree | |
952 warning: unexpected parent of complex expression subtree | |
953 zgemm.f, line 327: warning: unexpected parent of complex | |
954 expression subtree | |
955 pcc_binval: missing IR_CONV in complex op | |
956 make[2]: *** [zgemm.o] Error 1 | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
957 @end group |
6670 | 958 @end example |
3294 | 959 |
960 @noindent | |
961 when compiling the Fortran subroutines in the @file{libcruft} | |
962 subdirectory, you should either upgrade your compiler or try compiling | |
963 with optimization turned off. | |
964 | |
965 @item | |
966 On NeXT systems, if you get errors like this: | |
967 | |
968 @example | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
969 @group |
7081 | 970 /usr/tmp/cc007458.s:unknown:Undefined local |
971 symbol LBB7656 | |
972 /usr/tmp/cc007458.s:unknown:Undefined local | |
973 symbol LBE7656 | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
974 @end group |
3294 | 975 @end example |
976 | |
977 @noindent | |
978 when compiling @file{Array.cc} and @file{Matrix.cc}, try recompiling | |
10828
322f43e0e170
Grammarcheck .txi documentation files.
Rik <octave@nomad.inbox5.com>
parents:
10711
diff
changeset
|
979 these files without @option{-g}. |
3294 | 980 |
981 @item | |
14018
5d5685216876
Deprecate shell_cmd function and update system, dos, unix commands
Rik <octave@nomad.inbox5.com>
parents:
12973
diff
changeset
|
982 Some people have reported that calls to system() and the pager do not |
3294 | 983 work on SunOS systems. This is apparently due to having |
9209
923c7cb7f13f
Simplify TeXinfo files by eliminating redundant @iftex followed by @tex construction.
Rik <rdrider0-list@yahoo.com>
parents:
9081
diff
changeset
|
984 @w{@code{G_HAVE_SYS_WAIT}} defined to be 0 instead of 1 when compiling |
3294 | 985 @code{libg++}. |
986 | |
987 @item | |
988 On NeXT systems, linking to @file{libsys_s.a} may fail to resolve the | |
989 following functions | |
990 | |
991 @example | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
992 @group |
3294 | 993 _tcgetattr |
994 _tcsetattr | |
995 _tcflow | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
996 @end group |
3294 | 997 @end example |
998 | |
999 @noindent | |
1000 which are part of @file{libposix.a}. Unfortunately, linking Octave with | |
10828
322f43e0e170
Grammarcheck .txi documentation files.
Rik <octave@nomad.inbox5.com>
parents:
10711
diff
changeset
|
1001 @option{-posix} results in the following undefined symbols. |
3294 | 1002 |
1003 @example | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
1004 @group |
3294 | 1005 .destructors_used |
1006 .constructors_used | |
1007 _objc_msgSend | |
1008 _NXGetDefaultValue | |
1009 _NXRegisterDefaults | |
1010 .objc_class_name_NXStringTable | |
1011 .objc_class_name_NXBundle | |
9081
c79cf77061b7
Cleanup documentation files contrib.texi, bugs.texi, install.texi, emacs.texi
Rik <rdrider0-list@yahoo.com>
parents:
9031
diff
changeset
|
1012 @end group |
3294 | 1013 @end example |
1014 | |
1015 One kluge around this problem is to extract @file{termios.o} from | |
1016 @file{libposix.a}, put it in Octave's @file{src} directory, and add it | |
1017 to the list of files to link together in the makefile. Suggestions for | |
1018 better ways to solve this problem are welcome! | |
1019 | |
1020 @item | |
1021 If Octave crashes immediately with a floating point exception, it is | |
1022 likely that it is failing to initialize the IEEE floating point values | |
1023 for infinity and NaN. | |
1024 | |
1025 If your system actually does support IEEE arithmetic, you should be able | |
1026 to fix this problem by modifying the function @code{octave_ieee_init} in | |
1027 the file @file{lo-ieee.cc} to correctly initialize Octave's internal | |
1028 infinity and NaN variables. | |
1029 | |
1030 If your system does not support IEEE arithmetic but Octave's configure | |
1031 script incorrectly determined that it does, you can work around the | |
1032 problem by editing the file @file{config.h} to not define | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1033 @w{@code{HAVE_ISINF}}, @w{@code{HAVE_FINITE}}, and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1034 @w{@code{HAVE_ISNAN}}. |
3294 | 1035 |
1036 In any case, please report this as a bug since it might be possible to | |
1037 modify Octave's configuration script to automatically determine the | |
1038 proper thing to do. | |
1039 | |
7144 | 1040 @item |
1041 If Octave is unable to find a header file because it is installed in a | |
1042 location that is not normally searched by the compiler, you can add the | |
1043 directory to the include search path by specifying (for example) | |
1044 @code{CPPFLAGS=-I/some/nonstandard/directory} as an argument to | |
1045 @code{configure}. Other variables that can be specified this way are | |
12152
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1046 @env{CFLAGS}, @env{CXXFLAGS}, @env{FFLAGS}, and @env{LDFLAGS}. Passing |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1047 them as options to the configure script also records them in the |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1048 @file{config.status} file. By default, @env{CPPFLAGS} and @env{LDFLAGS} |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1049 are empty, @env{CFLAGS} and @env{CXXFLAGS} are set to @code{"-g -O"} and |
8e1ab522c902
Update build instructions in INSTALL.OCTAVE for release 3.4.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
1050 @env{FFLAGS} is set to @code{"-O"}. |
7144 | 1051 |
3294 | 1052 @end itemize |