<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].
<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].