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

contributors($setup);

?>
<div id="enchant.installation" class="section">
 <h2 class="title">安装</h2>
 <p class="simpara">
  Provided the
  <a href="enchant.requirements.php" class="link">required libraries</a> are
  installed, users may enable enchant by adding the
  <strong class="option configure">--with-enchant[=dir]</strong> option when compiling
  PHP.
 </p>
 <p class="simpara">
  Windows users must enable <var class="filename">php_enchant.dll</var>
  in order to use this extension.
 </p>
 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <strong>Additional setup on Windows</strong><br />
  <span class="simpara">
   为了使此扩展生效，
<abbr title="Dynamic Link Library">DLL</abbr> 文件必须能在 Windows 系统的
<var class="envar">PATH</var> 指示的路径下找到。如何操作的信息，请参见题为“<a href="faq.installation.php#faq.installation.addtopath" class="link">如何在 Windows 中将 PHP
目录加到 PATH 中</a>”的<abbr title="Frequently Asked Questions">FAQ</abbr>。虽然将
DLL 文件从 PHP 文件夹复制到 Windows 系统目录也行，但不建议这样做。
<em>此扩展需要下列文件在 <var class="envar">PATH</var> 路径中：</em>
   <var class="filename">libenchant.dll</var>,
   <var class="filename">glib-2.dll</var>,
   <var class="filename">gmodule-2.dll</var>.
  </span>
  <span class="simpara">
   Furthermore, it is necessary to copy at least one of the shipped providers in
   <var class="filename">lib\enchant</var> to <var class="filename">\usr\local\lib\enchant-2</var>
   (which is an absolute path from the root of the <em>current drive</em>).
   Prior to PHP 8.0.0, i.e. using Enchant v1, the providers had to be copied to
   <var class="filename">C:\enchant_plugins</var> instead,
   where this path could be customized by creating the registry value
   <code class="literal">HKEY_CURRENT_USER\SOFTWARE\Enchant\Config\Module_Dir</code>
   and setting it to the desired path.
  </span>
 </p></blockquote>
</div><?php manual_footer($setup); ?>