Home Explore Blog CI



postgresql

8th chunk of `doc/src/sgml/installation.sgml`
2f457a9fd204955343cae3f6b4bc45983081b5efbcc505d50000000100000fa4

<userinput>make install-world</userinput>
</screen>
    This also installs the documentation.
   </para>

   <para>
    If you built the world without the documentation above, type instead:
<screen>
<userinput>make install-world-bin</userinput>
</screen>
   </para>

   <para>
    You can use <literal>make install-strip</literal> instead of
    <literal>make install</literal> to strip the executable files and
    libraries as they are installed.  This will save some space.  If
    you built with debugging support, stripping will effectively
    remove the debugging support, so it should only be done if
    debugging is no longer needed.  <literal>install-strip</literal>
    tries to do a reasonable job saving space, but it does not have
    perfect knowledge of how to strip every unneeded byte from an
    executable file, so if you want to save all the disk space you
    possibly can, you will have to do manual work.
   </para>

   <para>
    The standard installation provides all the header files needed for client
    application development as well as for server-side program
    development, such as custom functions or data types written in C.
   </para>

   <formalpara>
    <title>Client-only installation:</title>
    <para>
     If you want to install only the client applications and
     interface libraries, then you can use these commands:
<screen>
<userinput>make -C src/bin install</userinput>
<userinput>make -C src/include install</userinput>
<userinput>make -C src/interfaces install</userinput>
<userinput>make -C doc install</userinput>
</screen>
    <filename>src/bin</filename> has a few binaries for server-only use,
    but they are small.
    </para>
   </formalpara>
  </step>
  </procedure>

  <formalpara>
   <title>Uninstallation:</title>
   <para>
    To undo the installation use the command <command>make
    uninstall</command>. However, this will not remove any created directories.
   </para>
  </formalpara>

  <formalpara>
   <title>Cleaning:</title>

   <para>
    After the installation you can free disk space by removing the built
    files from the source tree with the command <command>make
    clean</command>. This will preserve the files made by the <command>configure</command>
    program, so that you can rebuild everything with <command>make</command>
    later on. To reset the source tree to the state in which it was
    distributed, use <command>make distclean</command>. If you are going to
    build for several platforms within the same source tree you must do
    this and re-configure for each platform.  (Alternatively, use
    a separate build tree for each platform, so that the source tree
    remains unmodified.)
   </para>
  </formalpara>

  <para>
   If you perform a build and then discover that your <command>configure</command>
   options were wrong, or if you change anything that <command>configure</command>
   investigates (for example, software upgrades), then it's a good
   idea to do <command>make distclean</command> before reconfiguring and
   rebuilding.  Without this, your changes in configuration choices
   might not propagate everywhere they need to.
  </para>
  </sect2>

  <sect2 id="configure-options">
   <title><filename>configure</filename> Options</title>

   <indexterm zone="configure-options">
    <primary>configure options</primary>
   </indexterm>

   <para>
    <command>configure</command>'s command line options are explained below.
    This list is not exhaustive (use <literal>./configure --help</literal>
    to get one that is).  The options not covered here are meant for
    advanced use-cases such as cross-compilation, and are documented in
    the standard Autoconf documentation.
   </para>

   <sect3 id="configure-options-locations">
    <title>Installation Locations</title>

     <para>
      These options control where <literal>make install</literal> will put
      the files.  The <option>--prefix</option> option is sufficient for
      most cases.  If you have special

Title: PostgreSQL Installation and Configuration
Summary
The installation of PostgreSQL can be customized using various 'make' commands, such as 'make install-world' and 'make install-strip', and can also be uninstalled using 'make uninstall'. Additionally, the source tree can be cleaned using 'make clean' or 'make distclean', and configuration options can be specified using the 'configure' command, with options such as '--prefix' controlling installation locations.