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