Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Installation and Configuration : Installation of PECL extensions

Chapter 5. Installation of PECL extensions

Introduction to PECL Installations

» PECL is a repository of PHP extensions that are made available to you via the » PEAR packaging system. This section of the manual is intended to demonstrate how to obtain and install PECL extensions.

These instructions assume /your/phpsrcdir/ is the path to the PHP source distribution, and that extname is the name of the PECL extension. Adjust accordingly. These instructions also assume a familiarity with the » pear command. The information in the PEAR manual for the pear command also applies to the pecl command.

To be useful, a shared extension must be built, installed, and loaded. The methods described below provide you with various instructions on how to build and install the extensions, but they do not automatically load them. Extensions can be loaded by adding an extension directive. To this php.ini file, or through the use of the dl() function.

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

Code Examples / Notes » install.pecl

rbemrose

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


Change Language


Follow Navioo On Twitter
General Installation Considerations
Installation on Unix systems
Installation on Mac OS X
Installation on Windows systems
Installation of PECL extensions
Problems?
Runtime Configuration
eXTReMe Tracker