<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/wkhtmltox.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'wkhtmltox.installation.php',
    1 => '安装',
    2 => '安装',
  ),
  'up' => 
  array (
    0 => 'wkhtmltox.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'wkhtmltox.requirements.php',
    1 => '需求',
  ),
  'next' => 
  array (
    0 => 'wkhtmltox.configuration.php',
    1 => '运行时配置',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/wkhtmltox/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="wkhtmltox.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   The source code of this extension, and binaries for Windows are hosted by <a href="https://github.com/krakjoe/wkhtmltox" class="link external">&raquo;&nbsp;github</a>,
  </p>
  <p class="para">
   Fetching the source code and building the extension:
   <div class="example-contents screen">
   <div class="cdata"><pre>
git clone https://github.com/krakjoe/wkhtmltox
cd wkhtmltox
phpize
./configure --with-wkhtmltox=/path/to/wkhtmltox/installation
make
sudo make install
   </pre></div>
   </div>
  </p>
  <p class="para">
  Fetching updates and rebuilding the extension:
   <div class="example-contents screen">
   <div class="cdata"><pre>
cd wkhtmltox
phpize --clean
git pull origin master
phpize
./configure --with-wkhtmltox=/path/to/wkhtmltox/installation
make
sudo make install
   </pre></div>
   </div>
  </p>
 </div><?php manual_footer($setup); ?>