Sometimes it doesn't work .
peclInstall the command. This could be because behind the firewall, or because the extension library you want to install does not have a PECL compatible package, such as an extension library that has not yet been published in SVN. If you want to compile this extension library, you can compile it manually using the lower-level compilation tool.
The phpize command is used to prepare the compilation environment for the PHP Extension library. In the following example, the source program for the extension library is in the extname directory:
$ cd extname$ phpize$./configure$ make# Make Install
A successful installation will be created extname.so and placed in the PHP extension Library directory. You need to adjust php.ini it before you can use this extension until you join the extension=extname.so line.
If the system does not have a phpize command and uses a precompiled package (for example, RPM), install the appropriate development version of the PHP package, which typically contains the phpize command and the corresponding header file for compiling PHP and its extension library.
Use the phpize--help command to display this command usage.
Compiling a shared PECL extension library with Phpize