gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

754 lines
54KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>16.4. Installation Procedure</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="install-getsource.html" title="16.3. Getting the Source" /><link rel="next" href="install-post.html" title="16.5. Post-Installation Setup" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">16.4. Installation Procedure</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="install-getsource.html" title="16.3. Getting the Source">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="installation.html" title="Chapter 16. Installation from Source Code">Up</a></td><th width="60%" align="center">Chapter 16. Installation from Source Code</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="install-post.html" title="16.5. Post-Installation Setup">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="INSTALL-PROCEDURE"><div class="titlepage"><div><div><h2 class="title" style="clear: both">16.4. Installation Procedure</h2></div></div></div><div class="procedure"><ol class="procedure" type="1"><li class="step" id="CONFIGURE"><p class="title"><strong>Configuration</strong></p><a id="id-1.6.3.8.2.1.2" class="indexterm"></a><p>
  3. The first step of the installation procedure is to configure the
  4. source tree for your system and choose the options you would like.
  5. This is done by running the <code class="filename">configure</code> script. For a
  6. default installation simply enter:
  7. </p><pre class="screen">
  8. <strong class="userinput"><code>./configure</code></strong>
  9. </pre><p>
  10. This script will run a number of tests to determine values for various
  11. system dependent variables and detect any quirks of your
  12. operating system, and finally will create several files in the
  13. build tree to record what it found. You can also run
  14. <code class="filename">configure</code> in a directory outside the source
  15. tree, if you want to keep the build directory separate. This
  16. procedure is also called a
  17. <a id="id-1.6.3.8.2.1.3.4" class="indexterm"></a><em class="firstterm">VPATH</em>
  18. build. Here's how:
  19. </p><pre class="screen">
  20. <strong class="userinput"><code>mkdir build_dir</code></strong>
  21. <strong class="userinput"><code>cd build_dir</code></strong>
  22. <strong class="userinput"><code>/path/to/source/tree/configure [options go here]</code></strong>
  23. <strong class="userinput"><code>make</code></strong>
  24. </pre><p>
  25. </p><p>
  26. The default configuration will build the server and utilities, as
  27. well as all client applications and interfaces that require only a
  28. C compiler. All files will be installed under
  29. <code class="filename">/usr/local/pgsql</code> by default.
  30. </p><p>
  31. You can customize the build and installation process by supplying one
  32. or more of the following command line options to
  33. <code class="filename">configure</code>:
  34. </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="option">--prefix=<em class="replaceable"><code>PREFIX</code></em></code></span></dt><dd><p>
  35. Install all files under the directory <em class="replaceable"><code>PREFIX</code></em>
  36. instead of <code class="filename">/usr/local/pgsql</code>. The actual
  37. files will be installed into various subdirectories; no files
  38. will ever be installed directly into the
  39. <em class="replaceable"><code>PREFIX</code></em> directory.
  40. </p><p>
  41. If you have special needs, you can also customize the
  42. individual subdirectories with the following options. However,
  43. if you leave these with their defaults, the installation will be
  44. relocatable, meaning you can move the directory after
  45. installation. (The <code class="literal">man</code> and <code class="literal">doc</code>
  46. locations are not affected by this.)
  47. </p><p>
  48. For relocatable installs, you might want to use
  49. <code class="filename">configure</code>'s <code class="literal">--disable-rpath</code>
  50. option. Also, you will need to tell the operating system how
  51. to find the shared libraries.
  52. </p></dd><dt><span class="term"><code class="option">--exec-prefix=<em class="replaceable"><code>EXEC-PREFIX</code></em></code></span></dt><dd><p>
  53. You can install architecture-dependent files under a
  54. different prefix, <em class="replaceable"><code>EXEC-PREFIX</code></em>, than what
  55. <em class="replaceable"><code>PREFIX</code></em> was set to. This can be useful to
  56. share architecture-independent files between hosts. If you
  57. omit this, then <em class="replaceable"><code>EXEC-PREFIX</code></em> is set equal to
  58. <em class="replaceable"><code>PREFIX</code></em> and both architecture-dependent and
  59. independent files will be installed under the same tree,
  60. which is probably what you want.
  61. </p></dd><dt><span class="term"><code class="option">--bindir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  62. Specifies the directory for executable programs. The default
  63. is <code class="filename"><em class="replaceable"><code>EXEC-PREFIX</code></em>/bin</code>, which
  64. normally means <code class="filename">/usr/local/pgsql/bin</code>.
  65. </p></dd><dt><span class="term"><code class="option">--sysconfdir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  66. Sets the directory for various configuration files,
  67. <code class="filename"><em class="replaceable"><code>PREFIX</code></em>/etc</code> by default.
  68. </p></dd><dt><span class="term"><code class="option">--libdir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  69. Sets the location to install libraries and dynamically loadable
  70. modules. The default is
  71. <code class="filename"><em class="replaceable"><code>EXEC-PREFIX</code></em>/lib</code>.
  72. </p></dd><dt><span class="term"><code class="option">--includedir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  73. Sets the directory for installing C and C++ header files. The
  74. default is <code class="filename"><em class="replaceable"><code>PREFIX</code></em>/include</code>.
  75. </p></dd><dt><span class="term"><code class="option">--datarootdir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  76. Sets the root directory for various types of read-only data
  77. files. This only sets the default for some of the following
  78. options. The default is
  79. <code class="filename"><em class="replaceable"><code>PREFIX</code></em>/share</code>.
  80. </p></dd><dt><span class="term"><code class="option">--datadir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  81. Sets the directory for read-only data files used by the
  82. installed programs. The default is
  83. <code class="filename"><em class="replaceable"><code>DATAROOTDIR</code></em></code>. Note that this has
  84. nothing to do with where your database files will be placed.
  85. </p></dd><dt><span class="term"><code class="option">--localedir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  86. Sets the directory for installing locale data, in particular
  87. message translation catalog files. The default is
  88. <code class="filename"><em class="replaceable"><code>DATAROOTDIR</code></em>/locale</code>.
  89. </p></dd><dt><span class="term"><code class="option">--mandir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  90. The man pages that come with <span class="productname">PostgreSQL</span> will be installed under
  91. this directory, in their respective
  92. <code class="filename">man<em class="replaceable"><code>x</code></em></code> subdirectories.
  93. The default is <code class="filename"><em class="replaceable"><code>DATAROOTDIR</code></em>/man</code>.
  94. </p></dd><dt><span class="term"><code class="option">--docdir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  95. Sets the root directory for installing documentation files,
  96. except <span class="quote">“<span class="quote">man</span>”</span> pages. This only sets the default for
  97. the following options. The default value for this option is
  98. <code class="filename"><em class="replaceable"><code>DATAROOTDIR</code></em>/doc/postgresql</code>.
  99. </p></dd><dt><span class="term"><code class="option">--htmldir=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  100. The HTML-formatted documentation for
  101. <span class="productname">PostgreSQL</span> will be installed under
  102. this directory. The default is
  103. <code class="filename"><em class="replaceable"><code>DATAROOTDIR</code></em></code>.
  104. </p></dd></dl></div><p>
  105. </p><div class="note"><h3 class="title">Note</h3><p>
  106. Care has been taken to make it possible to install
  107. <span class="productname">PostgreSQL</span> into shared installation locations
  108. (such as <code class="filename">/usr/local/include</code>) without
  109. interfering with the namespace of the rest of the system. First,
  110. the string <span class="quote">“<span class="quote"><code class="literal">/postgresql</code></span>”</span> is
  111. automatically appended to <code class="varname">datadir</code>,
  112. <code class="varname">sysconfdir</code>, and <code class="varname">docdir</code>,
  113. unless the fully expanded directory name already contains the
  114. string <span class="quote">“<span class="quote"><code class="literal">postgres</code></span>”</span> or
  115. <span class="quote">“<span class="quote"><code class="literal">pgsql</code></span>”</span>. For example, if you choose
  116. <code class="filename">/usr/local</code> as prefix, the documentation will
  117. be installed in <code class="filename">/usr/local/doc/postgresql</code>,
  118. but if the prefix is <code class="filename">/opt/postgres</code>, then it
  119. will be in <code class="filename">/opt/postgres/doc</code>. The public C
  120. header files of the client interfaces are installed into
  121. <code class="varname">includedir</code> and are namespace-clean. The
  122. internal header files and the server header files are installed
  123. into private directories under <code class="varname">includedir</code>. See
  124. the documentation of each interface for information about how to
  125. access its header files. Finally, a private subdirectory will
  126. also be created, if appropriate, under <code class="varname">libdir</code>
  127. for dynamically loadable modules.
  128. </p></div><p>
  129. </p><p>
  130. </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="option">--with-extra-version=<em class="replaceable"><code>STRING</code></em></code></span></dt><dd><p>
  131. Append <em class="replaceable"><code>STRING</code></em> to the PostgreSQL version number. You
  132. can use this, for example, to mark binaries built from unreleased Git
  133. snapshots or containing custom patches with an extra version string
  134. such as a <code class="command">git describe</code> identifier or a
  135. distribution package release number.
  136. </p></dd><dt><span class="term"><code class="option">--with-includes=<em class="replaceable"><code>DIRECTORIES</code></em></code></span></dt><dd><p>
  137. <em class="replaceable"><code>DIRECTORIES</code></em> is a colon-separated list of
  138. directories that will be added to the list the compiler
  139. searches for header files. If you have optional packages
  140. (such as GNU <span class="application">Readline</span>) installed in a non-standard
  141. location,
  142. you have to use this option and probably also the corresponding
  143. <code class="option">--with-libraries</code> option.
  144. </p><p>
  145. Example: <code class="literal">--with-includes=/opt/gnu/include:/usr/sup/include</code>.
  146. </p></dd><dt><span class="term"><code class="option">--with-libraries=<em class="replaceable"><code>DIRECTORIES</code></em></code></span></dt><dd><p>
  147. <em class="replaceable"><code>DIRECTORIES</code></em> is a colon-separated list of
  148. directories to search for libraries. You will probably have
  149. to use this option (and the corresponding
  150. <code class="option">--with-includes</code> option) if you have packages
  151. installed in non-standard locations.
  152. </p><p>
  153. Example: <code class="literal">--with-libraries=/opt/gnu/lib:/usr/sup/lib</code>.
  154. </p></dd><dt><span class="term"><code class="option">--enable-nls[<span class="optional">=<em class="replaceable"><code>LANGUAGES</code></em></span>]</code></span></dt><dd><p>
  155. Enables Native Language Support (<acronym class="acronym">NLS</acronym>),
  156. that is, the ability to display a program's messages in a
  157. language other than English.
  158. <em class="replaceable"><code>LANGUAGES</code></em> is an optional space-separated
  159. list of codes of the languages that you want supported, for
  160. example <code class="literal">--enable-nls='de fr'</code>. (The intersection
  161. between your list and the set of actually provided
  162. translations will be computed automatically.) If you do not
  163. specify a list, then all available translations are
  164. installed.
  165. </p><p>
  166. To use this option, you will need an implementation of the
  167. <span class="application">Gettext</span> API; see above.
  168. </p></dd><dt><span class="term"><code class="option">--with-pgport=<em class="replaceable"><code>NUMBER</code></em></code></span></dt><dd><p>
  169. Set <em class="replaceable"><code>NUMBER</code></em> as the default port number for
  170. server and clients. The default is 5432. The port can always
  171. be changed later on, but if you specify it here then both
  172. server and clients will have the same default compiled in,
  173. which can be very convenient. Usually the only good reason
  174. to select a non-default value is if you intend to run multiple
  175. <span class="productname">PostgreSQL</span> servers on the same machine.
  176. </p></dd><dt><span class="term"><code class="option">--with-perl</code></span></dt><dd><p>
  177. Build the <span class="application">PL/Perl</span> server-side language.
  178. </p></dd><dt><span class="term"><code class="option">--with-python</code></span></dt><dd><p>
  179. Build the <span class="application">PL/Python</span> server-side language.
  180. </p></dd><dt><span class="term"><code class="option">--with-tcl</code></span></dt><dd><p>
  181. Build the <span class="application">PL/Tcl</span> server-side language.
  182. </p></dd><dt><span class="term"><code class="option">--with-tclconfig=<em class="replaceable"><code>DIRECTORY</code></em></code></span></dt><dd><p>
  183. Tcl installs the file <code class="filename">tclConfig.sh</code>, which
  184. contains configuration information needed to build modules
  185. interfacing to Tcl. This file is normally found automatically
  186. at a well-known location, but if you want to use a different
  187. version of Tcl you can specify the directory in which to look
  188. for it.
  189. </p></dd><dt><span class="term"><code class="option">--with-gssapi</code></span></dt><dd><p>
  190. Build with support for GSSAPI authentication. On many
  191. systems, the GSSAPI (usually a part of the Kerberos installation)
  192. system is not installed in a location
  193. that is searched by default (e.g., <code class="filename">/usr/include</code>,
  194. <code class="filename">/usr/lib</code>), so you must use the options
  195. <code class="option">--with-includes</code> and <code class="option">--with-libraries</code> in
  196. addition to this option. <code class="filename">configure</code> will check
  197. for the required header files and libraries to make sure that
  198. your GSSAPI installation is sufficient before proceeding.
  199. </p></dd><dt><span class="term"><code class="option">--with-krb-srvnam=<em class="replaceable"><code>NAME</code></em></code></span></dt><dd><p>
  200. The default name of the Kerberos service principal used
  201. by GSSAPI.
  202. <code class="literal">postgres</code> is the default. There's usually no
  203. reason to change this unless you have a Windows environment,
  204. in which case it must be set to upper case
  205. <code class="literal">POSTGRES</code>.
  206. </p></dd><dt id="CONFIGURE-WITH-LLVM"><span class="term"><code class="option">--with-llvm</code></span></dt><dd><p>
  207. Build with support for <span class="productname">LLVM</span> based
  208. <acronym class="acronym">JIT</acronym> compilation<span class="phrase"> (see <a class="xref" href="jit.html" title="Chapter 31. Just-in-Time Compilation (JIT)">Chapter 31</a>)</span>. This
  209. requires the <span class="productname">LLVM</span> library to be installed.
  210. The minimum required version of <span class="productname">LLVM</span> is
  211. currently 3.9.
  212. </p><p>
  213. <code class="command">llvm-config</code><a id="id-1.6.3.8.2.1.6.1.12.2.2.2" class="indexterm"></a>
  214. will be used to find the required compilation options.
  215. <code class="command">llvm-config</code>, and then
  216. <code class="command">llvm-config-$major-$minor</code> for all supported
  217. versions, will be searched on <code class="envar">PATH</code>. If that would not
  218. yield the correct binary, use <code class="envar">LLVM_CONFIG</code> to specify a
  219. path to the correct <code class="command">llvm-config</code>. For example
  220. </p><pre class="programlisting">
  221. ./configure ... --with-llvm LLVM_CONFIG='/path/to/llvm/bin/llvm-config'
  222. </pre><p>
  223. </p><p>
  224. <span class="productname">LLVM</span> support requires a compatible
  225. <code class="command">clang</code> compiler (specified, if necessary, using the
  226. <code class="envar">CLANG</code> environment variable), and a working C++
  227. compiler (specified, if necessary, using the <code class="envar">CXX</code>
  228. environment variable).
  229. </p></dd><dt><span class="term"><code class="option">--with-icu</code></span></dt><dd><p>
  230. Build with support for
  231. the <span class="productname">ICU</span><a id="id-1.6.3.8.2.1.6.1.13.2.1.2" class="indexterm"></a>
  232. library. This requires the <span class="productname">ICU4C</span> package
  233. to be installed. The minimum required version
  234. of <span class="productname">ICU4C</span> is currently 4.2.
  235. </p><p>
  236. By default,
  237. <span class="productname">pkg-config</span><a id="id-1.6.3.8.2.1.6.1.13.2.2.2" class="indexterm"></a>
  238. will be used to find the required compilation options. This is
  239. supported for <span class="productname">ICU4C</span> version 4.6 and later.
  240. For older versions, or if <span class="productname">pkg-config</span> is
  241. not available, the variables <code class="envar">ICU_CFLAGS</code>
  242. and <code class="envar">ICU_LIBS</code> can be specified
  243. to <code class="filename">configure</code>, like in this example:
  244. </p><pre class="programlisting">
  245. ./configure ... --with-icu ICU_CFLAGS='-I/some/where/include' ICU_LIBS='-L/some/where/lib -licui18n -licuuc -licudata'
  246. </pre><p>
  247. (If <span class="productname">ICU4C</span> is in the default search path
  248. for the compiler, then you still need to specify a nonempty string in
  249. order to avoid use of <span class="productname">pkg-config</span>, for
  250. example, <code class="literal">ICU_CFLAGS=' '</code>.)
  251. </p></dd><dt><span class="term"><code class="option">--with-openssl</code>
  252. <a id="id-1.6.3.8.2.1.6.1.14.1.2" class="indexterm"></a>
  253. </span></dt><dd><p>
  254. Build with support for <acronym class="acronym">SSL</acronym> (encrypted)
  255. connections. This requires the <span class="productname">OpenSSL</span>
  256. package to be installed. <code class="filename">configure</code> will check
  257. for the required header files and libraries to make sure that
  258. your <span class="productname">OpenSSL</span> installation is sufficient
  259. before proceeding.
  260. </p></dd><dt><span class="term"><code class="option">--with-pam</code></span></dt><dd><p>
  261. Build with <acronym class="acronym">PAM</acronym><a id="id-1.6.3.8.2.1.6.1.15.2.1.2" class="indexterm"></a>
  262. (Pluggable Authentication Modules) support.
  263. </p></dd><dt><span class="term"><code class="option">--with-bsd-auth</code></span></dt><dd><p>
  264. Build with BSD Authentication support.
  265. (The BSD Authentication framework is
  266. currently only available on OpenBSD.)
  267. </p></dd><dt><span class="term"><code class="option">--with-ldap</code></span></dt><dd><p>
  268. Build with <acronym class="acronym">LDAP</acronym><a id="id-1.6.3.8.2.1.6.1.17.2.1.2" class="indexterm"></a>
  269. support for authentication and connection parameter lookup (see
  270. <span id="INSTALL-LDAP-LINKS" class="phrase"><a class="xref" href="libpq-ldap.html" title="33.17. LDAP Lookup of Connection Parameters">Section 33.17</a> and
  271. <a class="xref" href="auth-ldap.html" title="20.10. LDAP Authentication">Section 20.10</a></span> for more information). On Unix,
  272. this requires the <span class="productname">OpenLDAP</span> package to be
  273. installed. On Windows, the default <span class="productname">WinLDAP</span>
  274. library is used. <code class="filename">configure</code> will check for the required
  275. header files and libraries to make sure that your
  276. <span class="productname">OpenLDAP</span> installation is sufficient before
  277. proceeding.
  278. </p></dd><dt><span class="term"><code class="option">--with-systemd</code></span></dt><dd><p>
  279. Build with support
  280. for <span class="application">systemd</span><a id="id-1.6.3.8.2.1.6.1.18.2.1.2" class="indexterm"></a>
  281. service notifications. This improves integration if the server binary
  282. is started under <span class="application">systemd</span> but has no impact
  283. otherwise<span class="phrase">; see <a class="xref" href="server-start.html" title="18.3. Starting the Database Server">Section 18.3</a> for more
  284. information</span>. <span class="application">libsystemd</span> and the
  285. associated header files need to be installed to be able to use this
  286. option.
  287. </p></dd><dt><span class="term"><code class="option">--without-readline</code></span></dt><dd><p>
  288. Prevents use of the <span class="application">Readline</span> library
  289. (and <span class="application">libedit</span> as well). This option disables
  290. command-line editing and history in
  291. <span class="application">psql</span>, so it is not recommended.
  292. </p></dd><dt><span class="term"><code class="option">--with-libedit-preferred</code></span></dt><dd><p>
  293. Favors the use of the BSD-licensed <span class="application">libedit</span> library
  294. rather than GPL-licensed <span class="application">Readline</span>. This option
  295. is significant only if you have both libraries installed; the
  296. default in that case is to use <span class="application">Readline</span>.
  297. </p></dd><dt><span class="term"><code class="option">--with-bonjour</code></span></dt><dd><p>
  298. Build with Bonjour support. This requires Bonjour support
  299. in your operating system. Recommended on macOS.
  300. </p></dd><dt><span class="term"><code class="option">--with-uuid=<em class="replaceable"><code>LIBRARY</code></em></code></span></dt><dd><p>
  301. Build the <a class="xref" href="uuid-ossp.html" title="F.44. uuid-ossp">uuid-ossp</a> module
  302. (which provides functions to generate UUIDs), using the specified
  303. UUID library.<a id="id-1.6.3.8.2.1.6.1.22.2.1.2" class="indexterm"></a>
  304. <em class="replaceable"><code>LIBRARY</code></em> must be one of:
  305. </p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>
  306. <code class="option">bsd</code> to use the UUID functions found in FreeBSD, NetBSD,
  307. and some other BSD-derived systems
  308. </p></li><li class="listitem"><p>
  309. <code class="option">e2fs</code> to use the UUID library created by
  310. the <code class="literal">e2fsprogs</code> project; this library is present in most
  311. Linux systems and in macOS, and can be obtained for other
  312. platforms as well
  313. </p></li><li class="listitem"><p>
  314. <code class="option">ossp</code> to use the <a class="ulink" href="http://www.ossp.org/pkg/lib/uuid/" target="_top">OSSP UUID library</a>
  315. </p></li></ul></div></dd><dt><span class="term"><code class="option">--with-ossp-uuid</code></span></dt><dd><p>
  316. Obsolete equivalent of <code class="literal">--with-uuid=ossp</code>.
  317. </p></dd><dt><span class="term"><code class="option">--with-libxml</code></span></dt><dd><p>
  318. Build with libxml2, enabling SQL/XML support. Libxml2 version 2.6.23 or
  319. later is required for this feature.
  320. </p><p>
  321. To detect the required compiler and linker options, PostgreSQL will
  322. query <code class="command">pkg-config</code>, if that is installed and knows
  323. about libxml2. Otherwise the program <code class="command">xml2-config</code>,
  324. which is installed by libxml2, will be used if it is found. Use
  325. of <code class="command">pkg-config</code> is preferred, because it can deal
  326. with multi-architecture installations better.
  327. </p><p>
  328. To use a libxml2 installation that is in an unusual location, you
  329. can set <code class="command">pkg-config</code>-related environment
  330. variables (see its documentation), or set the environment variable
  331. <code class="envar">XML2_CONFIG</code> to point to
  332. the <code class="command">xml2-config</code> program belonging to the libxml2
  333. installation, or set the variables <code class="envar">XML2_CFLAGS</code>
  334. and <code class="envar">XML2_LIBS</code>. (If <code class="command">pkg-config</code> is
  335. installed, then to override its idea of where libxml2 is you must
  336. either set <code class="envar">XML2_CONFIG</code> or set
  337. both <code class="envar">XML2_CFLAGS</code> and <code class="envar">XML2_LIBS</code> to
  338. nonempty strings.)
  339. </p></dd><dt><span class="term"><code class="option">--with-libxslt</code></span></dt><dd><p>
  340. Use libxslt when building the
  341. <a class="xref" href="xml2.html" title="F.45. xml2">xml2</a>
  342. module. <span class="application">xml2</span> relies on this library
  343. to perform XSL transformations of XML.
  344. </p></dd><dt><span class="term"><code class="option">--disable-float4-byval</code></span></dt><dd><p>
  345. Disable passing float4 values <span class="quote">“<span class="quote">by value</span>”</span>, causing them
  346. to be passed <span class="quote">“<span class="quote">by reference</span>”</span> instead. This option costs
  347. performance, but may be needed for compatibility with old
  348. user-defined functions that are written in C and use the
  349. <span class="quote">“<span class="quote">version 0</span>”</span> calling convention. A better long-term
  350. solution is to update any such functions to use the
  351. <span class="quote">“<span class="quote">version 1</span>”</span> calling convention.
  352. </p></dd><dt><span class="term"><code class="option">--disable-float8-byval</code></span></dt><dd><p>
  353. Disable passing float8 values <span class="quote">“<span class="quote">by value</span>”</span>, causing them
  354. to be passed <span class="quote">“<span class="quote">by reference</span>”</span> instead. This option costs
  355. performance, but may be needed for compatibility with old
  356. user-defined functions that are written in C and use the
  357. <span class="quote">“<span class="quote">version 0</span>”</span> calling convention. A better long-term
  358. solution is to update any such functions to use the
  359. <span class="quote">“<span class="quote">version 1</span>”</span> calling convention.
  360. Note that this option affects not only float8, but also int8 and some
  361. related types such as timestamp.
  362. On 32-bit platforms, <code class="option">--disable-float8-byval</code> is the default
  363. and it is not allowed to select <code class="option">--enable-float8-byval</code>.
  364. </p></dd><dt><span class="term"><code class="option">--with-segsize=<em class="replaceable"><code>SEGSIZE</code></em></code></span></dt><dd><p>
  365. Set the <em class="firstterm">segment size</em>, in gigabytes. Large tables are
  366. divided into multiple operating-system files, each of size equal
  367. to the segment size. This avoids problems with file size limits
  368. that exist on many platforms. The default segment size, 1 gigabyte,
  369. is safe on all supported platforms. If your operating system has
  370. <span class="quote">“<span class="quote">largefile</span>”</span> support (which most do, nowadays), you can use
  371. a larger segment size. This can be helpful to reduce the number of
  372. file descriptors consumed when working with very large tables.
  373. But be careful not to select a value larger than is supported
  374. by your platform and the file systems you intend to use. Other
  375. tools you might wish to use, such as <span class="application">tar</span>, could
  376. also set limits on the usable file size.
  377. It is recommended, though not absolutely required, that this value
  378. be a power of 2.
  379. Note that changing this value requires an initdb.
  380. </p></dd><dt><span class="term"><code class="option">--with-blocksize=<em class="replaceable"><code>BLOCKSIZE</code></em></code></span></dt><dd><p>
  381. Set the <em class="firstterm">block size</em>, in kilobytes. This is the unit
  382. of storage and I/O within tables. The default, 8 kilobytes,
  383. is suitable for most situations; but other values may be useful
  384. in special cases.
  385. The value must be a power of 2 between 1 and 32 (kilobytes).
  386. Note that changing this value requires an initdb.
  387. </p></dd><dt><span class="term"><code class="option">--with-wal-blocksize=<em class="replaceable"><code>BLOCKSIZE</code></em></code></span></dt><dd><p>
  388. Set the <em class="firstterm">WAL block size</em>, in kilobytes. This is the unit
  389. of storage and I/O within the WAL log. The default, 8 kilobytes,
  390. is suitable for most situations; but other values may be useful
  391. in special cases.
  392. The value must be a power of 2 between 1 and 64 (kilobytes).
  393. Note that changing this value requires an initdb.
  394. </p></dd><dt><span class="term"><code class="option">--disable-spinlocks</code></span></dt><dd><p>
  395. Allow the build to succeed even if <span class="productname">PostgreSQL</span>
  396. has no CPU spinlock support for the platform. The lack of
  397. spinlock support will result in poor performance; therefore,
  398. this option should only be used if the build aborts and
  399. informs you that the platform lacks spinlock support. If this
  400. option is required to build <span class="productname">PostgreSQL</span> on
  401. your platform, please report the problem to the
  402. <span class="productname">PostgreSQL</span> developers.
  403. </p></dd><dt><span class="term"><code class="option">--disable-thread-safety</code></span></dt><dd><p>
  404. Disable the thread-safety of client libraries. This prevents
  405. concurrent threads in <span class="application">libpq</span> and
  406. <span class="application">ECPG</span> programs from safely controlling
  407. their private connection handles.
  408. </p></dd><dt><span class="term"><code class="option">--with-system-tzdata=<em class="replaceable"><code>DIRECTORY</code></em></code>
  409. <a id="id-1.6.3.8.2.1.6.1.33.1.2" class="indexterm"></a>
  410. </span></dt><dd><p>
  411. <span class="productname">PostgreSQL</span> includes its own time zone database,
  412. which it requires for date and time operations. This time zone
  413. database is in fact compatible with the IANA time zone
  414. database provided by many operating systems such as FreeBSD,
  415. Linux, and Solaris, so it would be redundant to install it again.
  416. When this option is used, the system-supplied time zone database
  417. in <em class="replaceable"><code>DIRECTORY</code></em> is used instead of the one
  418. included in the PostgreSQL source distribution.
  419. <em class="replaceable"><code>DIRECTORY</code></em> must be specified as an
  420. absolute path. <code class="filename">/usr/share/zoneinfo</code> is a
  421. likely directory on some operating systems. Note that the
  422. installation routine will not detect mismatching or erroneous time
  423. zone data. If you use this option, you are advised to run the
  424. regression tests to verify that the time zone data you have
  425. pointed to works correctly with <span class="productname">PostgreSQL</span>.
  426. </p><a id="id-1.6.3.8.2.1.6.1.33.2.2" class="indexterm"></a><p>
  427. This option is mainly aimed at binary package distributors
  428. who know their target operating system well. The main
  429. advantage of using this option is that the PostgreSQL package
  430. won't need to be upgraded whenever any of the many local
  431. daylight-saving time rules change. Another advantage is that
  432. PostgreSQL can be cross-compiled more straightforwardly if the
  433. time zone database files do not need to be built during the
  434. installation.
  435. </p></dd><dt><span class="term"><code class="option">--without-zlib</code></span></dt><dd><p>
  436. <a id="id-1.6.3.8.2.1.6.1.34.2.1.1" class="indexterm"></a>
  437. Prevents use of the <span class="application">Zlib</span> library. This disables
  438. support for compressed archives in <span class="application">pg_dump</span>
  439. and <span class="application">pg_restore</span>.
  440. This option is only intended for those rare systems where this
  441. library is not available.
  442. </p></dd><dt><span class="term"><code class="option">--enable-debug</code></span></dt><dd><p>
  443. Compiles all programs and libraries with debugging symbols.
  444. This means that you can run the programs in a debugger
  445. to analyze problems. This enlarges the size of the installed
  446. executables considerably, and on non-GCC compilers it usually
  447. also disables compiler optimization, causing slowdowns. However,
  448. having the symbols available is extremely helpful for dealing
  449. with any problems that might arise. Currently, this option is
  450. recommended for production installations only if you use GCC.
  451. But you should always have it on if you are doing development work
  452. or running a beta version.
  453. </p></dd><dt><span class="term"><code class="option">--enable-coverage</code></span></dt><dd><p>
  454. If using GCC, all programs and libraries are compiled with
  455. code coverage testing instrumentation. When run, they
  456. generate files in the build directory with code coverage
  457. metrics.
  458. <span class="phrase">See <a class="xref" href="regress-coverage.html" title="32.5. Test Coverage Examination">Section 32.5</a>
  459. for more information.</span> This option is for use only with GCC
  460. and when doing development work.
  461. </p></dd><dt><span class="term"><code class="option">--enable-profiling</code></span></dt><dd><p>
  462. If using GCC, all programs and libraries are compiled so they
  463. can be profiled. On backend exit, a subdirectory will be created
  464. that contains the <code class="filename">gmon.out</code> file for use in profiling.
  465. This option is for use only with GCC and when doing development work.
  466. </p></dd><dt><span class="term"><code class="option">--enable-cassert</code></span></dt><dd><p>
  467. Enables <em class="firstterm">assertion</em> checks in the server, which test for
  468. many <span class="quote">“<span class="quote">cannot happen</span>”</span> conditions. This is invaluable for
  469. code development purposes, but the tests can slow down the
  470. server significantly.
  471. Also, having the tests turned on won't necessarily enhance the
  472. stability of your server! The assertion checks are not categorized
  473. for severity, and so what might be a relatively harmless bug will
  474. still lead to server restarts if it triggers an assertion
  475. failure. This option is not recommended for production use, but
  476. you should have it on for development work or when running a beta
  477. version.
  478. </p></dd><dt><span class="term"><code class="option">--enable-depend</code></span></dt><dd><p>
  479. Enables automatic dependency tracking. With this option, the
  480. makefiles are set up so that all affected object files will
  481. be rebuilt when any header file is changed. This is useful
  482. if you are doing development work, but is just wasted overhead
  483. if you intend only to compile once and install. At present,
  484. this option only works with GCC.
  485. </p></dd><dt><span class="term"><code class="option">--enable-dtrace</code></span></dt><dd><p>
  486. <a id="id-1.6.3.8.2.1.6.1.40.2.1.1" class="indexterm"></a>
  487. Compiles <span class="productname">PostgreSQL</span> with support for the
  488. dynamic tracing tool DTrace.
  489. <span class="phrase">See <a class="xref" href="dynamic-trace.html" title="27.5. Dynamic Tracing">Section 27.5</a>
  490. for more information.</span>
  491. </p><p>
  492. To point to the <code class="command">dtrace</code> program, the
  493. environment variable <code class="envar">DTRACE</code> can be set. This
  494. will often be necessary because <code class="command">dtrace</code> is
  495. typically installed under <code class="filename">/usr/sbin</code>,
  496. which might not be in the path.
  497. </p><p>
  498. Extra command-line options for the <code class="command">dtrace</code> program
  499. can be specified in the environment variable
  500. <code class="envar">DTRACEFLAGS</code>. On Solaris,
  501. to include DTrace support in a 64-bit binary, you must specify
  502. <code class="literal">DTRACEFLAGS="-64"</code> to configure. For example,
  503. using the GCC compiler:
  504. </p><pre class="screen">
  505. ./configure CC='gcc -m64' --enable-dtrace DTRACEFLAGS='-64' ...
  506. </pre><p>
  507. Using Sun's compiler:
  508. </p><pre class="screen">
  509. ./configure CC='/opt/SUNWspro/bin/cc -xtarget=native64' --enable-dtrace DTRACEFLAGS='-64' ...
  510. </pre><p>
  511. </p></dd><dt><span class="term"><code class="option">--enable-tap-tests</code></span></dt><dd><p>
  512. Enable tests using the Perl TAP tools. This requires a Perl
  513. installation and the Perl module <code class="literal">IPC::Run</code>.
  514. <span class="phrase">See <a class="xref" href="regress-tap.html" title="32.4. TAP Tests">Section 32.4</a> for more information.</span>
  515. </p></dd></dl></div><p>
  516. </p><p>
  517. If you prefer a C compiler different from the one
  518. <code class="filename">configure</code> picks, you can set the
  519. environment variable <code class="envar">CC</code> to the program of your choice.
  520. By default, <code class="filename">configure</code> will pick
  521. <code class="filename">gcc</code> if available, else the platform's
  522. default (usually <code class="filename">cc</code>). Similarly, you can override the
  523. default compiler flags if needed with the <code class="envar">CFLAGS</code> variable.
  524. </p><p>
  525. You can specify environment variables on the
  526. <code class="filename">configure</code> command line, for example:
  527. </p><pre class="screen">
  528. <strong class="userinput"><code>./configure CC=/opt/bin/gcc CFLAGS='-O2 -pipe'</code></strong>
  529. </pre><p>
  530. </p><p>
  531. Here is a list of the significant variables that can be set in
  532. this manner:
  533. </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="envar">BISON</code></span></dt><dd><p>
  534. Bison program
  535. </p></dd><dt><span class="term"><code class="envar">CC</code></span></dt><dd><p>
  536. C compiler
  537. </p></dd><dt><span class="term"><code class="envar">CFLAGS</code></span></dt><dd><p>
  538. options to pass to the C compiler
  539. </p></dd><dt><span class="term"><code class="envar">CLANG</code></span></dt><dd><p>
  540. path to <code class="command">clang</code> program used to process source code
  541. for inlining when compiling with <code class="literal">--with-llvm</code>
  542. </p></dd><dt><span class="term"><code class="envar">CPP</code></span></dt><dd><p>
  543. C preprocessor
  544. </p></dd><dt><span class="term"><code class="envar">CPPFLAGS</code></span></dt><dd><p>
  545. options to pass to the C preprocessor
  546. </p></dd><dt><span class="term"><code class="envar">CXX</code></span></dt><dd><p>
  547. C++ compiler
  548. </p></dd><dt><span class="term"><code class="envar">CXXFLAGS</code></span></dt><dd><p>
  549. options to pass to the C++ compiler
  550. </p></dd><dt><span class="term"><code class="envar">DTRACE</code></span></dt><dd><p>
  551. location of the <code class="command">dtrace</code> program
  552. </p></dd><dt><span class="term"><code class="envar">DTRACEFLAGS</code></span></dt><dd><p>
  553. options to pass to the <code class="command">dtrace</code> program
  554. </p></dd><dt><span class="term"><code class="envar">FLEX</code></span></dt><dd><p>
  555. Flex program
  556. </p></dd><dt><span class="term"><code class="envar">LDFLAGS</code></span></dt><dd><p>
  557. options to use when linking either executables or shared libraries
  558. </p></dd><dt><span class="term"><code class="envar">LDFLAGS_EX</code></span></dt><dd><p>
  559. additional options for linking executables only
  560. </p></dd><dt><span class="term"><code class="envar">LDFLAGS_SL</code></span></dt><dd><p>
  561. additional options for linking shared libraries only
  562. </p></dd><dt><span class="term"><code class="envar">LLVM_CONFIG</code></span></dt><dd><p>
  563. <code class="command">llvm-config</code> program used to locate the
  564. <span class="productname">LLVM</span> installation.
  565. </p></dd><dt><span class="term"><code class="envar">MSGFMT</code></span></dt><dd><p>
  566. <code class="command">msgfmt</code> program for native language support
  567. </p></dd><dt><span class="term"><code class="envar">PERL</code></span></dt><dd><p>
  568. Perl interpreter program. This will be used to determine the
  569. dependencies for building PL/Perl. The default is
  570. <code class="command">perl</code>.
  571. </p></dd><dt><span class="term"><code class="envar">PYTHON</code></span></dt><dd><p>
  572. Python interpreter program. This will be used to
  573. determine the dependencies for building PL/Python. Also,
  574. whether Python 2 or 3 is specified here (or otherwise
  575. implicitly chosen) determines which variant of the PL/Python
  576. language becomes available. See
  577. <a class="xref" href="plpython-python23.html" title="45.1. Python 2 vs. Python 3">Section 45.1</a>
  578. for more information. If this is not set, the following are probed
  579. in this order: <code class="literal">python python3 python2</code>.
  580. </p></dd><dt><span class="term"><code class="envar">TCLSH</code></span></dt><dd><p>
  581. Tcl interpreter program. This will be used to
  582. determine the dependencies for building PL/Tcl, and it will
  583. be substituted into Tcl scripts.
  584. </p></dd><dt><span class="term"><code class="envar">XML2_CONFIG</code></span></dt><dd><p>
  585. <code class="command">xml2-config</code> program used to locate the
  586. libxml2 installation
  587. </p></dd></dl></div><p>
  588. </p><p>
  589. Sometimes it is useful to add compiler flags after-the-fact to the set
  590. that were chosen by <code class="filename">configure</code>. An important example is
  591. that <span class="application">gcc</span>'s <code class="option">-Werror</code> option cannot be included
  592. in the <code class="envar">CFLAGS</code> passed to <code class="filename">configure</code>, because
  593. it will break many of <code class="filename">configure</code>'s built-in tests. To add
  594. such flags, include them in the <code class="envar">COPT</code> environment variable
  595. while running <code class="filename">make</code>. The contents of <code class="envar">COPT</code>
  596. are added to both the <code class="envar">CFLAGS</code> and <code class="envar">LDFLAGS</code>
  597. options set up by <code class="filename">configure</code>. For example, you could do
  598. </p><pre class="screen">
  599. <strong class="userinput"><code>make COPT='-Werror'</code></strong>
  600. </pre><p>
  601. or
  602. </p><pre class="screen">
  603. <strong class="userinput"><code>export COPT='-Werror'</code></strong>
  604. <strong class="userinput"><code>make</code></strong>
  605. </pre><p>
  606. </p><div class="note"><h3 class="title">Note</h3><p>
  607. When developing code inside the server, it is recommended to
  608. use the configure options <code class="option">--enable-cassert</code> (which
  609. turns on many run-time error checks) and <code class="option">--enable-debug</code>
  610. (which improves the usefulness of debugging tools).
  611. </p><p>
  612. If using GCC, it is best to build with an optimization level of
  613. at least <code class="option">-O1</code>, because using no optimization
  614. (<code class="option">-O0</code>) disables some important compiler warnings (such
  615. as the use of uninitialized variables). However, non-zero
  616. optimization levels can complicate debugging because stepping
  617. through compiled code will usually not match up one-to-one with
  618. source code lines. If you get confused while trying to debug
  619. optimized code, recompile the specific files of interest with
  620. <code class="option">-O0</code>. An easy way to do this is by passing an option
  621. to <span class="application">make</span>: <code class="command">make PROFILE=-O0 file.o</code>.
  622. </p><p>
  623. The <code class="envar">COPT</code> and <code class="envar">PROFILE</code> environment variables are
  624. actually handled identically by the <span class="productname">PostgreSQL</span>
  625. makefiles. Which to use is a matter of preference, but a common habit
  626. among developers is to use <code class="envar">PROFILE</code> for one-time flag
  627. adjustments, while <code class="envar">COPT</code> might be kept set all the time.
  628. </p></div></li><li class="step" id="BUILD"><p class="title"><strong>Build</strong></p><p>
  629. To start the build, type either of:
  630. </p><pre class="screen">
  631. <strong class="userinput"><code>make</code></strong>
  632. <strong class="userinput"><code>make all</code></strong>
  633. </pre><p>
  634. (Remember to use <acronym class="acronym">GNU</acronym> <span class="application">make</span>.)
  635. The build will take a few minutes depending on your
  636. hardware. The last line displayed should be:
  637. </p><pre class="screen">
  638. All of PostgreSQL successfully made. Ready to install.
  639. </pre><p>
  640. </p><p>
  641. If you want to build everything that can be built, including the
  642. documentation (HTML and man pages), and the additional modules
  643. (<code class="filename">contrib</code>), type instead:
  644. </p><pre class="screen">
  645. <strong class="userinput"><code>make world</code></strong>
  646. </pre><p>
  647. The last line displayed should be:
  648. </p><pre class="screen">
  649. PostgreSQL, contrib, and documentation successfully made. Ready to install.
  650. </pre><p>
  651. </p><p>
  652. If you want to invoke the build from another makefile rather than
  653. manually, you must unset <code class="varname">MAKELEVEL</code> or set it to zero,
  654. for instance like this:
  655. </p><pre class="programlisting">
  656. build-postgresql:
  657. $(MAKE) -C postgresql MAKELEVEL=0 all
  658. </pre><p>
  659. Failure to do that can lead to strange error messages, typically about
  660. missing header files.
  661. </p></li><li class="step"><p class="title"><strong>Regression Tests</strong></p><a id="id-1.6.3.8.2.3.2" class="indexterm"></a><p>
  662. If you want to test the newly built server before you install it,
  663. you can run the regression tests at this point. The regression
  664. tests are a test suite to verify that <span class="productname">PostgreSQL</span>
  665. runs on your machine in the way the developers expected it
  666. to. Type:
  667. </p><pre class="screen">
  668. <strong class="userinput"><code>make check</code></strong>
  669. </pre><p>
  670. (This won't work as root; do it as an unprivileged user.)
  671. See <a class="xref" href="regress.html" title="Chapter 32. Regression Tests">Chapter 32</a> for
  672. detailed information about interpreting the test results. You can
  673. repeat this test at any later time by issuing the same command.
  674. </p></li><li class="step" id="INSTALL"><p class="title"><strong>Installing the Files</strong></p><div class="note"><h3 class="title">Note</h3><p>
  675. If you are upgrading an existing system be sure to read
  676. <a class="xref" href="upgrading.html" title="18.6. Upgrading a PostgreSQL Cluster">Section 18.6</a>,
  677. which has instructions about upgrading a
  678. cluster.
  679. </p></div><p>
  680. To install <span class="productname">PostgreSQL</span> enter:
  681. </p><pre class="screen">
  682. <strong class="userinput"><code>make install</code></strong>
  683. </pre><p>
  684. This will install files into the directories that were specified
  685. in <a class="xref" href="install-procedure.html#CONFIGURE" title="Configuration">Step 1</a>. Make sure that you have appropriate
  686. permissions to write into that area. Normally you need to do this
  687. step as root. Alternatively, you can create the target
  688. directories in advance and arrange for appropriate permissions to
  689. be granted.
  690. </p><p>
  691. To install the documentation (HTML and man pages), enter:
  692. </p><pre class="screen">
  693. <strong class="userinput"><code>make install-docs</code></strong>
  694. </pre><p>
  695. </p><p>
  696. If you built the world above, type instead:
  697. </p><pre class="screen">
  698. <strong class="userinput"><code>make install-world</code></strong>
  699. </pre><p>
  700. This also installs the documentation.
  701. </p><p>
  702. You can use <code class="literal">make install-strip</code> instead of
  703. <code class="literal">make install</code> to strip the executable files and
  704. libraries as they are installed. This will save some space. If
  705. you built with debugging support, stripping will effectively
  706. remove the debugging support, so it should only be done if
  707. debugging is no longer needed. <code class="literal">install-strip</code>
  708. tries to do a reasonable job saving space, but it does not have
  709. perfect knowledge of how to strip every unneeded byte from an
  710. executable file, so if you want to save all the disk space you
  711. possibly can, you will have to do manual work.
  712. </p><p>
  713. The standard installation provides all the header files needed for client
  714. application development as well as for server-side program
  715. development, such as custom functions or data types written in C.
  716. (Prior to <span class="productname">PostgreSQL</span> 8.0, a separate <code class="literal">make
  717. install-all-headers</code> command was needed for the latter, but this
  718. step has been folded into the standard install.)
  719. </p><p><strong>Client-only installation: </strong>
  720. If you want to install only the client applications and
  721. interface libraries, then you can use these commands:
  722. </p><pre class="screen">
  723. <strong class="userinput"><code>make -C src/bin install</code></strong>
  724. <strong class="userinput"><code>make -C src/include install</code></strong>
  725. <strong class="userinput"><code>make -C src/interfaces install</code></strong>
  726. <strong class="userinput"><code>make -C doc install</code></strong>
  727. </pre><p>
  728. <code class="filename">src/bin</code> has a few binaries for server-only use,
  729. but they are small.
  730. </p></li></ol></div><p><strong>Uninstallation: </strong>
  731. To undo the installation use the command <code class="command">make
  732. uninstall</code>. However, this will not remove any created directories.
  733. </p><p><strong>Cleaning: </strong>
  734. After the installation you can free disk space by removing the built
  735. files from the source tree with the command <code class="command">make
  736. clean</code>. This will preserve the files made by the <code class="command">configure</code>
  737. program, so that you can rebuild everything with <code class="command">make</code>
  738. later on. To reset the source tree to the state in which it was
  739. distributed, use <code class="command">make distclean</code>. If you are going to
  740. build for several platforms within the same source tree you must do
  741. this and re-configure for each platform. (Alternatively, use
  742. a separate build tree for each platform, so that the source tree
  743. remains unmodified.)
  744. </p><p>
  745. If you perform a build and then discover that your <code class="command">configure</code>
  746. options were wrong, or if you change anything that <code class="command">configure</code>
  747. investigates (for example, software upgrades), then it's a good
  748. idea to do <code class="command">make distclean</code> before reconfiguring and
  749. rebuilding. Without this, your changes in configuration choices
  750. might not propagate everywhere they need to.
  751. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="install-getsource.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="installation.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="install-post.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">16.3. Getting the Source </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 16.5. Post-Installation Setup</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1