PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

下载 PECL 扩展库> <Windows 下安装扩展库
Last updated: Mon, 26 Nov 2007

view this page in

PECL 扩展库安装

Table of Contents

PECL 安装介绍

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

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

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

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



add a note add a note User Contributed Notes
PECL 扩展库安装
hawodi at gmail dot com
18-Sep-2007 08:05
The article did not detail how to install a pecl extension!
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

下载 PECL 扩展库> <Windows 下安装扩展库
Last updated: Mon, 26 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites