<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/dba.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'dba.installation.php',
    1 => 'インストール手順',
    2 => 'インストール手順',
  ),
  'up' => 
  array (
    0 => 'dba.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'dba.requirements.php',
    1 => '要件',
  ),
  'next' => 
  array (
    0 => 'dba.configuration.php',
    1 => '実行時設定',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/dba/configure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="dba.installation" class="section">
 <h2 class="title">インストール手順</h2>
 <p class="simpara">
  設定オプション <strong class="option configure">--enable-dba=shared</strong>
  を使用することにより、dbm 形式のデータベースをサポートする動的に
  ロード可能なモジュールを有効にして PHP を構築することができます。
  また、PHP の configure 行に設定スイッチ <code class="literal">--with-XXXX</code>
  または <strong class="option configure">--enable-XXXX</strong>
  を指定することにより、少なくとも以下のハンドラの一つのサポートを
  追加する必要があります。
 </p>
 <div class="warning"><strong class="warning">警告</strong>
  <p class="simpara">
   PHP の configuring とコンパイルを済ませたら、コマンドラインから次の
   テストを実行する必要があります: <code class="literal">php run-tests.php ext/dba</code>
   これは、指定したハンドラの組み合わせが動作するかどうかを調べます。
   いちばん問題のあるのは <code class="literal">dbm</code> と <code class="literal">ndbm</code>
   の組み合わせで、これらは多くの場合何らかの衝突を引き起こします。
   その原因は、いくつかのシステムではこれらのライブラリが他のライブラリの
   一部となっていることで。configure 時のテストでは個々のハンドラについての
   設定不備は調べられますが、それらの組み合わせについてはテストできません。
  </p>
 </div>
 <table class="doctable table">
  <caption><strong>サポートされるDBAハンドラ</strong></caption>
  
   <thead>
    <tr>
     <th>ハンドラ</th>
     <th>configure のスイッチ</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><code class="literal">dbm</code></td>
     <td>
      <p class="para">
      dbm のサポートを有効にするには、
      <strong class="option configure">--with-dbm[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        dbm は一般的にはラッパーで、しばしば失敗を引き起こします。
        その動作をしっかり把握しており、ほんとうにそれを必要とする場合のみ
        dbm を使用するようにすべきです。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">ndbm</code></td>
     <td>
      <p class="para">
      ndbm のサポートを有効にするには、
      <strong class="option configure">--with-ndbm[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        ndbm は一般的にはラッパーで、しばしば失敗を引き起こします。
        その動作をしっかり把握しており、ほんとうにそれを必要とする場合のみ
        ndbm を使用するようにすべきです。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">gdbm</code></td>
     <td>
      gdbm のサポートを有効にするには、
      <strong class="option configure">--with-gdbm[=DIR]</strong> を追加します。
     </td>
    </tr>


    <tr>
     <td><code class="literal">db2</code></td>
     <td>
      <p class="para">
      Oracle Berkeley DB のサポートを有効にするには、
      <strong class="option configure">--with-db2[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        db2 は db3 および db4 とは同時に使えません。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">db3</code></td>
     <td>
      <p class="para">
      Oracle Berkeley DB 3 のサポートを有効にするには、
      <strong class="option configure">--with-db3[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        db3 は db2 および db4 とは同時に使えません。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">db4</code></td>
     <td>
      <p class="para">
      Oracle Berkeley DB 4 あるいは 5 のサポートを有効にするには、
      <strong class="option configure">--with-db4[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        db4 は db2 および db3 とは同時に使えません。
       </span>
      </p></blockquote>
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        バージョン 4.1 から 4.1.24
        までの db ライブラリは、どの PHP のバージョンでも利用できません。
       </span>
       <span class="simpara">
        BDB 5 のサポートは PHP 5.3.3 で追加されました。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">cdb</code></td>
     <td>
      <p class="para">
      cdb のサポートを有効にするには、
      <strong class="option configure">--with-cdb[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        付属する cdb ライブラリを使用するために DIR
        を省略することができます。この場合、cdb_make ハンドラが追加されます。
        これにより cdb ファイルを作成したり、PHPのストリームを用いて
        ネットワーク上の cdb ファイルにアクセスできるようになります。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">flatfile</code></td>
     <td>
      <p class="para">
      flatfile のサポートを有効にするには、
      <strong class="option configure">--enable-flatfile</strong> を追加します。
      PHP 5.2.1 以前では、
      <strong class="option configure">--with-flatfile</strong> オプションを使わなければなりませんでした。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        これは、古い <code class="literal">dbm</code> 拡張モジュール
        との互換性のために追加されました。
        このハンドラは、他のハンドラで必要とされるライブラリをひとつも
        インストールすることができない場合、そして、付属する cdb
        ハンドラを使用することができない場合にのみ使用してください。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">inifile</code></td>
     <td>
      <p class="para">
      <code class="literal">inifile</code> のサポートを有効にするには、
      <strong class="option configure">--enable-inifile</strong> を追加します。
      PHP 5.2.1 以前では、
      <strong class="option configure">--with-inifile</strong> オプションを使わなければなりませんでした。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        これは Microsoft 形式の
        <var class="filename">.ini</var> ファイル（<var class="filename">php.ini</var> のような）を
        読み書きできるようにするために追加されました。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">qdbm</code></td>
     <td>
      <p class="para">
      qdbm のサポートを有効にするには、
      <strong class="option configure">--with-qdbm[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        qdbm は dbm および gdbm とは同時に使えません。
       </span>
      </p></blockquote>
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        qdbm ライブラリは
        <a href="http://fallabs.com/qdbm/index.html" class="link external">&raquo;&nbsp;http://fallabs.com/qdbm/index.html</a>
        からダウンロードできます。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">tcadb</code></td>
     <td>
      <p class="para">
      Tokyo Cabinet のサポートを有効にするには、
      <strong class="option configure">--with-tcadb[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        Tokyo Cabinet ライブラリは
        <a href="http://fallabs.com/tokyocabinet/" class="link external">&raquo;&nbsp;http://fallabs.com/tokyocabinet/</a> からダウンロードできます。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


    <tr>
     <td><code class="literal">lmdb</code></td>
     <td>
      <p class="para">
      Lightning Memory-Mapped Database のサポートを有効にするには、
      <strong class="option configure">--with-lmdb[=DIR]</strong> を追加します。
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <span class="simpara">
        これは PHP 7.2.0 で追加されました。
        Lightning Memory-Mapped Database は
        <a href="https://symas.com/lmdb/" class="link external">&raquo;&nbsp;https://symas.com/lmdb/</a> からダウンロードできます。
       </span>
      </p></blockquote>
      </p>
     </td>
    </tr>


   </tbody>
  
 </table>

</div><?php manual_footer($setup); ?>