Doc: update Installation document to mention that from Pgpool-II 4.5 it is required...
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 27 Nov 2023 05:19:18 +0000 (14:19 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 27 Nov 2023 05:25:33 +0000 (14:25 +0900)
doc.ja/src/sgml/installation.sgml
doc/src/sgml/installation.sgml

index 5ddea7943beb4f94f0d0c5aa9e83987662a39ca5..06cda3fc1a0f2f02bed91a78250c95ec2501eda2 100644 (file)
   <title>Pgpool-IIใฎใ‚คใƒณใ‚นใƒˆใƒผใƒซ</title>
   <para>
    <!--
-   After extracting the source tarball, execute the <filename>configure</> script.
+   After extracting the source tarball, follow the steps below to build
+   the source code.
    -->
-   ใ‚ฝใƒผใ‚นใฎtarballใ‚’ๅฑ•้–‹ใ—ใŸใ‚‰ใ€<filename>configure</>ใ‚นใ‚ฏใƒชใƒ—ใƒˆใ‚’ๅฎŸ่กŒใ—ใพใ™ใ€‚
+   ใ‚ฝใƒผใ‚นใฎtarballใ‚’ๅฑ•้–‹ใ—ใŸใ‚‰ใ€ไปฅไธ‹ใฎๆ‰‹้ †ใซใ—ใŸใŒใฃใฆใ€ใ‚ฝใƒผใ‚นใ‚ณใƒผใƒ‰ใ‚’ใƒ“ใƒซใƒ‰ใ—ใฆใ€<productname>Pgpool-II</productname>ใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ—ใพใ™ใ€‚
+  </para>
+  <para>
+   <!--
+   Since <productname>Pgpool-II</productname> 4.5, files such as
+   <filename>configure</filename> generated by <command>autoconf/autoreconf</command>
+   have been removed from the repository, so first run
+   <command>autoreconf -fi</command> to generate <filename>configure</filename>.
+   -->
+   <productname>Pgpool-II</productname> 4.5ใ‹ใ‚‰ใ€<command>autoconf/autoreconf</command>ใซใ‚ˆใฃใฆ็”Ÿๆˆใ•ใ‚Œใ‚‹configureใชใฉใฎใƒ•ใ‚กใ‚คใƒซใฏใƒชใƒใ‚ธใƒˆใƒชใ‹ใ‚‰ๅ‰Š้™คใ•ใ‚ŒใŸใฎใงใ€ใพใš<command>autoreconf -fi</command>ใ‚’ๅฎŸ่กŒใ—ใ€<filename>configure</filename>ใ‚’็”Ÿๆˆใ—ใพใ™ใ€‚
+   <programlisting>
+dnf install libtool
+
+cd pgpool-II-&version;
+autoreconf -fi
+   </programlisting>
+  </para>
+
+  <para>
+   <!--
+   Next, execute the <filename>configure</> script.
+   -->
+   ๆฌกใซใ€<filename>configure</>ใ‚นใ‚ฏใƒชใƒ—ใƒˆใ‚’ๅฎŸ่กŒใ—ใพใ™ใ€‚
    <programlisting>
-    ./configure
+./configure
    </programlisting>
   </para>
 
   </variablelist>
 
   <para>
+   <!--
+   Compile the source file.
+   -->
+   ใ‚ฝใƒผใ‚นใƒ•ใ‚กใ‚คใƒซใฎใ‚ณใƒณใƒ‘ใ‚คใƒซใ‚’่กŒใ„ใพใ™ใ€‚
+   <programlisting>
+make
+   </programlisting>
+  </para>
+  <para>
+   <!--
+   Install <productname>Pgpool-II</productname>.
+   -->
+   <productname>Pgpool-II</productname>ใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ—ใพใ™ใ€‚
    <programlisting>
-    make
-    make install
+make install
    </programlisting>
    <!--
    This will install <productname>Pgpool-II</>. (If you use <productname>Solaris</> or <productname>FreeBSD</>, replace make with gmake)
    -->
    ใ“ใ‚Œใฏๅ…จใฆใฎ<productname>Pgpool-II</productname>ใฎใ‚คใƒณใ‚นใƒˆใƒผใƒซใงๅฟ…่ฆใงใ™ใ€‚
    <programlisting>
-    $ cd pgpool-II-&version/src/sql/pgpool-recovery
-    $ make
-    $ make install
+$ cd pgpool-II-&version/src/sql/pgpool-recovery
+$ make
+$ make install
    </programlisting>
    <!--
    After this:
    -->
    ใ“ใฎๅพŒใซไปฅไธ‹ใ‹ใ€
    <programlisting>
-    $ psql template1
-    =# CREATE EXTENSION pgpool_recovery;
+$ psql template1
+=# CREATE EXTENSION pgpool_recovery;
    </programlisting>
 
    <!--
    -->
    ใพใŸใฏ
    <programlisting>
-    $ psql -f pgpool-recovery.sql template1
+$ psql -f pgpool-recovery.sql template1
    </programlisting>
    ใ‚’ๅฎŸ่กŒใ—ใพใ™ใ€‚
 
    ใใฎๅ ดๅˆใ€<filename>postgresql.conf</filename>ใซไปฅไธ‹ใ‚’่ฟฝๅŠ ใ—ใฆใใ ใ•ใ„ใ€‚
 
    <programlisting>
-    pgpool.pg_ctl = '/usr/local/pgsql/bin/pg_ctl'
+pgpool.pg_ctl = '/usr/local/pgsql/bin/pg_ctl'
    </programlisting>
 
    <!--
    -->
    ใ‚‚ใ—ใ‹ใ™ใ‚‹ใจใใฎๅพŒใซไปฅไธ‹ใ‚’ๅฎŸ่กŒใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใ€‚
    <programlisting>
-    $ pg_ctl reload -D /usr/local/pgsql/data
+$ pg_ctl reload -D /usr/local/pgsql/data
    </programlisting>
 
   </para>
 
   <para>
    <programlisting>
-    $ cd pgpool-II-&version/src/sql/pgpool-regclass
-    $ make
-    $ make install
+$ cd pgpool-II-&version/src/sql/pgpool-regclass
+$ make
+$ make install
    </programlisting>
    <!--
    After this:
    ใ“ใฎๅพŒใซไปฅไธ‹ใ‹ใ€
 
    <programlisting>
-    $ psql template1
-    =# CREATE EXTENSION pgpool_regclass;
+$ psql template1
+=# CREATE EXTENSION pgpool_regclass;
    </programlisting>
 
    <!--
    ใพใŸใฏ
 
    <programlisting>
-    $ psql -f pgpool-regclass.sql template1
+$ psql -f pgpool-regclass.sql template1
    </programlisting>
 
    ใ‚’ๅฎŸ่กŒใ—ใพใ™ใ€‚
    ใ“ใฎใƒ†ใƒผใƒ–ใƒซใซๅฏพใ™ใ‚‹ใƒญใƒƒใ‚ฏใฏใ€<command>VACUUM</command>ใจ็ซถๅˆใ™ใ‚‹ใŸใ‚ใ€<command>INSERT</command>ๅ‡ฆ็†ใŒ้•ทๆ™‚้–“ๅพ…ใŸใ•ใ‚Œ็ถšใ‘ใ‚‹ๅฏ่ƒฝๆ€งใŒใ‚ใ‚Šใพใ™ใ€‚
 
    <programlisting>
-    $ cd pgpool-II-&version/src/sql
-    $ psql -f insert_lock.sql template1
+$ cd pgpool-II-&version/src/sql
+$ psql -f insert_lock.sql template1
    </programlisting>
 
   </para>
     ใƒฆใƒผใ‚ถใŒ่ชญใ‚ใ‚‹HTMLใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใ‚’็”Ÿๆˆใ™ใ‚‹ใซใฏใ€docbookใƒ„ใƒผใƒซใ‚’ไฝฟใฃใฆใ‚ณใƒณใƒ‘ใ‚คใƒซใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚
     RHEL้กžไผผใฎใ‚ทใ‚นใƒ†ใƒ ใงใƒ„ใƒผใƒซใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ™ใ‚‹ใซใฏใ€ไปฅไธ‹ใ‚’ๅฎŸ่กŒใ—ใพใ™ใ€‚
     <programlisting>
-     yum install docbook-dtds docbook-style-dsssl docbook-style-xsl libxslt openjade
+dnf install --enablerepo=powertools docbook-dtds docbook-style-dsssl docbook-style-xsl libxslt openjade
     </programlisting>
    </para>
   </sect2>
     -->
     ใƒ„ใƒผใƒซใ‚ปใƒƒใƒˆใŒใ‚คใƒณใ‚นใƒˆใƒผใƒซใ•ใ‚ŒใŸใ‚‰ใ€ไปฅไธ‹ใฎใ‚ˆใ†ใซใ‚ณใƒณใƒ‘ใ‚คใƒซใ—ใพใ™ใ€‚
     <programlisting>
-     $ cd doc
-     $ make
-     $ cd ..
-     $ cd doc.ja
-     $ make
+$ cd doc
+$ make
+$ cd ..
+$ cd doc.ja
+$ make
     </programlisting>
     <!--
     You will see English HTML docs under doc/src/sgml/html, and online docs under sgml/man[1-8].
index 454f91965a7cd04597be7ae5b7e0b9d4056f650c..4f9caa82e09fae51848a64d15b008b47ce870333 100644 (file)
  <sect1 id="install-pgpool">
   <title>Installing Pgpool-II</title>
   <para>
-   After extracting the source tarball, execute the <filename>configure</> script.
+   After extracting the source tarball, follow the steps below to build
+   the source code and install <productname>Pgpool-II</productname>.
+  </para>
+  <para>
+   Since <productname>Pgpool-II</productname> 4.5, files such as
+   <filename>configure</filename> generated by <command>autoconf/autoreconf</command>
+   have been removed from the repository, so first run
+   <command>autoreconf -fi</command> to generate <filename>configure</filename>.
    <programlisting>
-    ./configure
+dnf install libtool
+
+cd pgpool-II-&version;
+autoreconf -fi
+   </programlisting>
+  </para>
+  <para>
+   Next, execute the <filename>configure</> script.
+   <programlisting>
+./configure
    </programlisting>
   </para>
 
   </variablelist>
 
   <para>
+   Compile the source file.
+   <programlisting>
+make
+   </programlisting>
+  </para>
+  <para>
+   Install <productname>Pgpool-II</productname>.
    <programlisting>
-    make
-    make install
+make install
    </programlisting>
    This will install <productname>Pgpool-II</>. (If you use <productname>Solaris</> or <productname>FreeBSD</>, replace <command>make</> with <command>gmake</>)
   </para>
    This is required in all <productname>Pgpool-II</productname>
    installation.
    <programlisting>
-    $ cd pgpool-II-&version/src/sql/pgpool-recovery
-    $ make
-    $ make install
+$ cd pgpool-II-&version/src/sql/pgpool-recovery
+$ make
+$ make install
    </programlisting>
    After this:
    <programlisting>
-    $ psql template1
-    =# CREATE EXTENSION pgpool_recovery;
+$ psql template1
+=# CREATE EXTENSION pgpool_recovery;
    </programlisting>
 
    or
    <programlisting>
-    $ psql -f pgpool-recovery.sql template1
+$ psql -f pgpool-recovery.sql template1
    </programlisting>
 
   </para>
    add following to <filename>postgresql.conf</filename>.
 
    <programlisting>
-    pgpool.pg_ctl = '/usr/local/pgsql/bin/pg_ctl'
+pgpool.pg_ctl = '/usr/local/pgsql/bin/pg_ctl'
    </programlisting>
 
    Probably you want to execute following after this:
    <programlisting>
-    $ pg_ctl reload -D /usr/local/pgsql/data
+$ pg_ctl reload -D /usr/local/pgsql/data
    </programlisting>
 
   </para>
 
   <para>
    <programlisting>
-    $ cd pgpool-II-&version/src/sql/pgpool-regclass
-    $ make
-    $ make install
+$ cd pgpool-II-&version/src/sql/pgpool-regclass
+$ make
+$ make install
    </programlisting>
    After this:
 
    <programlisting>
-    $ psql template1
-    =# CREATE EXTENSION pgpool_regclass;
+$ psql template1
+=# CREATE EXTENSION pgpool_regclass;
    </programlisting>
 
    or 
 
    <programlisting>
-    $ psql -f pgpool-regclass.sql template1
+$ psql -f pgpool-regclass.sql template1
    </programlisting>
 
    Executing <command>CREATE EXTENSION</command>
    processing may be thereby kept waiting for a long time.
 
    <programlisting>
-    $ cd pgpool-II-&version/src/sql
-    $ psql -f insert_lock.sql template1
+$ cd pgpool-II-&version/src/sql
+$ psql -f insert_lock.sql template1
    </programlisting>
 
   </para>
     compile them using docbook tools. To install Docbook tools on
     RHEL or similar systems, use:
     <programlisting>
-     yum install docbook-dtds docbook-style-dsssl docbook-style-xsl libxslt openjade
+dnf install --enablerepo=powertools docbook-dtds docbook-style-dsssl docbook-style-xsl libxslt openjade
     </programlisting>
    </para>
   </sect2>
    <para>
     Once the tool sets are installed on the system, you can compile the docs:
     <programlisting>
-     $ cd doc
-     $ make
-     $ cd ..
-     $ cd doc.ja
-     $ make
+$ cd doc
+$ make
+$ cd ..
+$ cd doc.ja
+$ make
     </programlisting>
     You will see English HTML docs under doc/src/sgml/html, and online docs under sgml/man[1-8].
     Japanese docs can be found under doc.ja/src/sgml/html, and online docs under sgml/man[1-8].