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

search for in the

用 phpize 编译共享 PECL 扩展库> <Windows 用户的 PECL
Last updated: Mon, 26 Nov 2007

view this page in

用 PEAR 编译共享 PECL 扩展库

PEAR 使建立共享 PHP 扩展库更容易。用 » pear 命令这样做:

$ pear install extname
   

这将下载 extname 的源代码,编译之,并将 extname.so 安装到 extension_dir 中。然后 extname.so 就可以通过 php.ini 加载了。

默认情况下,pear 命令不会安装标记为 alphabeta 状态的包。如果没有 stable 包可用,也可以用以下命令安装一个 beta 包:

$ pear install extname-beta
   

也可以用此命令安装一个指定的版本:

$ pear install extname-0.1
   



add a note add a note User Contributed Notes
用 PEAR 编译共享 PECL 扩展库
Dark Water
14-Apr-2008 03:26
To use the pecl or pear commands in Ubuntu, you can run:

sudo apt-get install php-pear
pedro dot fonini at gmail dot com
30-Mar-2008 09:27
to use the pecl, pear, or phpize commands in fedora, install the php-devel package:
$ yum install php-devel

 
show source | credits | sitemap | contact | advertising | mirror sites