PHP
PHP教程 | PHP论坛 | PHP中文手册

Search for

第 7 章 PECL 扩展库安装

目录

PECL 安装介绍
下载 PECL 扩展库
Windows 用户的 PECL
用 PEAR 编译共享 PECL 扩展库
用 phpize 编译共享 PECL 扩展库
将 PECL 扩展库静态编译入 PHP

PECL 安装介绍

» PECL 是通过 » PEAR 打包系统来的 PHP 扩展库仓库,本章内容示范了怎样取得并安装 PECL 扩展。

以下指南中假定 /your/phpsrcdir/ 是 PHP 源程序的路径,extname 是 PECL 扩展库的名字。自己根据实际情况调整。此外还假定用户熟悉 » pear 命令

要使用共享扩展库,必须经过编译,安装,然后加载。以下说明的方法提供了怎样编译和安装扩展库德各种指导,但并不会自动加载它们。可以通过将其包括在 php.ini 中用 extension PHP 指令加载,或者 用 dl() 函数。

当编译 PHP 模块时,拥有各种工具(autoconf,automake,libtool 等)的已知好使的版本很重要。所需工具和所需版本的详情见» 匿名 CVS 说明



User Contributed Notes PECL 扩展库安装
rbemrose at gmail dot com
17-Mar-2007 02:04
If you are using a Debian sarge system (currently the stable release) with php4-pear installed, you will still not have a pecl command.

The fix to this is to upgrade pear.

Unfortunately, pear upgrade PEAR will also error out stating that you need pear-1.3.3 minimum.

The fix to this is to specify the version of pear that you want to install.  In case it wasn't obvious, that means you want to
pear upgrade PEAR-1.3.3
pear upgrade-all

 
PHP教程 | PHP论坛 | PHP中文手册