<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.pecl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'install.pecl.intro.php',
    1 => 'PECL 安装介绍',
    2 => 'PECL 安装介绍',
  ),
  'up' => 
  array (
    0 => 'install.pecl.php',
    1 => 'PECL 扩展安装',
  ),
  'prev' => 
  array (
    0 => 'install.pecl.php',
    1 => 'PECL 扩展安装',
  ),
  'next' => 
  array (
    0 => 'install.pecl.downloads.php',
    1 => '下载 PECL 扩展库',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'install/pecl.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.pecl.intro" class="sect1">
  <h2 class="title">PECL 安装介绍</h2>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
 <span class="simpara">
  PHP 扩展安装器 (<abbr>PIE</abbr>) 是一个新的工具，将取代 PECL。
  我们建议使用 PIE 来安装扩展。在
  <a href="https://github.com/php/pie" class="link external">&raquo;&nbsp;https://github.com/php/pie</a>
  了解更多。
 </span>
</p></blockquote>
  <p class="simpara">
   <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a>
   通过 <a href="https://pear.php.net/" class="link external">&raquo;&nbsp;PEAR</a> 打包系统来的
   PHP 扩展库仓库，本章内容示范了怎样取得并安装 PECL 扩展。
  </p>
  <p class="simpara">
   以下指南中假设 <code class="literal">/path/to/php/src/dir</code> 是 PHP
   源代码发布包的路径，<code class="literal">extname</code> 是 PECL
   扩展库的名字。自己根据实际情况调整。此外还假设用户熟悉
   <a href="https://pear.php.net/manual/en/guide.users.commandline.cli.php" class="link external">&raquo;&nbsp;pear 命令</a>。PEAR
   手册里 <strong class="command">pear</strong> 命令的信息同样适用于 <strong class="command">pecl</strong>。
  </p>
  <p class="simpara">
   共享扩展库必须经过编译、安装和加载才能使用。以下说明的方法提供了怎样编译和安装扩展库的各种指导，但并不会自动加载它们。可以通过将其包括在
   <var class="filename">php.ini</var> 中用
   <a href="ini.core.php#ini.extension" class="link">extension</a> PHP 指令加载，或者
   用 <span class="function"><a href="function.dl.php" class="function">dl()</a></span> 函数。
  </p>
  <p class="simpara">
   当编译 PHP 模块时，拥有各种工具（autoconf、automake、libtool
   等）的已知好使的版本很重要。所需工具和所需版本的详情见<a href="https://www.php.net/git.php" class="link external">&raquo;&nbsp;匿名 Git 说明</a>。
  </p>
 </div><?php manual_footer($setup); ?>