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

contributors($setup);

?>
<div id="yac.installation" class="section">
  <h2 class="title">インストール手順</h2>
  <p class="simpara">
   Yac can be installed in one of three ways: via PECL, via PIE, or
   by building it from source.
  </p>
  <p class="simpara">
   この <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> 拡張モジュールは PHP にバンドルされていません。
  </p>
  <p class="simpara">
   この PECL 拡張モジュールをインストールする方法は、
マニュアルの <a href="install.pecl.php" class="link">
PECL 拡張モジュールのインストール</a> という章にあります。
新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG
といった関連する情報については、次の場所にあります。
   <a href="https://pecl.php.net/package/yac" class="link external">&raquo;&nbsp;https://pecl.php.net/package/yac</a>.
  </p>
  <p class="simpara">
   この <abbr title="PHP Extension Community Library">PECL</abbr>
拡張モジュールの Windows バイナリ (<abbr title="Dynamic Link Library">DLL</abbr> ファイル)
は、PECL のウェブサイトから取得できます。
  </p>
  <div class="example" id="example-1">
   <p><strong>例1 Installing Yac with PECL</strong></p>
   <div class="example-contents">
<div class="shellcode"><pre class="shellcode">pecl install yac</pre>
</div>
   </div>

  </div>
  <p class="simpara">
   As of Yac 2.3.2, the extension can be installed with
   <a href="https://github.com/php/pie" class="link external">&raquo;&nbsp;PIE</a>, the PHP Installer for Extensions, by running the
   following on the command line.
  </p>
  <div class="example" id="example-2">
   <p><strong>例2 Installing Yac with PIE</strong></p>
   <div class="example-contents">
<div class="shellcode"><pre class="shellcode">pie install laruence/yac</pre>
</div>
   </div>

  </div>
  <p class="simpara">
   Optional serializers can be enabled at install time:
  </p>
  <div class="example" id="example-3">
   <p><strong>例3 Installing Yac with PIE and a serializer</strong></p>
   <div class="example-contents">
<div class="shellcode"><pre class="shellcode">pie install laruence/yac --enable-json</pre>
</div>
   </div>

  </div>
  <p class="simpara">
   The source code is hosted on
   <a href="https://github.com/laruence/yac" class="link external">&raquo;&nbsp;GitHub</a>. To
   build the extension from source, run the following on the command
   line, replacing the paths with those of the local PHP
   installation.
  </p>
  <div class="example" id="example-4">
   <p><strong>例4 Building Yac from source</strong></p>
   <div class="example-contents">
<div class="shellcode"><pre class="shellcode">/path/to/phpize
./configure --with-php-config=/path/to/php-config
make &amp;&amp; make install</pre>
</div>
   </div>

  </div>
  <p class="simpara">
   The following <code class="literal">configure</code> options are available:
  </p>
  <p class="simpara">
   Values are compressed with LZ4 before being stored. The LZ4
   compression backend was introduced in Yac 2.4.0, replacing the
   earlier FastLZ. By default, Yac uses the LZ4 copy bundled with the
   extension; no extra flag is needed. To link against the system LZ4
   library instead, use the
   <strong class="option configure">--with-system-lz4</strong> switch, which
   requires the <code class="literal">lz4.h</code> header and
   <code class="literal">liblz4</code> to be installed.
  </p>
  <p class="simpara">
   Alternative serializers can be compiled in with
   <strong class="option configure">--enable-json</strong>,
   <strong class="option configure">--enable-msgpack</strong> or
   <strong class="option configure">--enable-igbinary</strong>, which register the
   corresponding extension as an optional dependency. The serializer used at
   runtime is selected with the
   <a href="yac.configuration.php#ini.yac.serializer" class="link">yac.serializer</a> ini directive.
  </p>
 </div><?php manual_footer($setup); ?>