<< Back to man.ChinaUnix.net

章 7. Installation of PECL extensions

目录
Introduction to PECL Installations
Downloading PECL extensions
PECL for Windows users
Compiling shared PECL extensions with PEAR
Compiling shared PECL extensions with phpize
Compiling PECL extensions statically into PHP

Introduction to PECL Installations

PHP extensions may be installed in a variety of ways. PECL is a repository of PHP extensions living within the PEAR structure, and the following demonstrates how to install these extensions.

These instructions assume /your/phpsrcdir/ is the path to the PHP source, and extname is the name of the PECL extension. Adjust accordingly. These instructions also assume a familiarity with the pear command.

Shared extensions may be installed by including them inside of php.ini using the extension PHP directive. See also the extensions_dir directive, and dl(). The installation methods described below do not automatically configure PHP to include these extensions, this step must be done manually.

When building PHP modules, it's important to have the appropriate versions of the required tools (autoconf, automake, libtool, etc.) See the Anonymous CVS Instructions for details on the required tools, and required versions.