Php – How to install PECL on a linux system

peclPHP

There are download sections for PECL extensions in http://pecl.php.net/
But I am not getting install steps for PECL *itself**. Following command does not work –

yum intall pecl

In my system, I have PECL installed, so I can install PECL extensions like this-

pecl install mailparse

But, in a system where running pecl command does not recognize the same, how to install PECL first on a Fedora 7 system (old system).

Best Answer

Seems to me that you should do yum install php-pear to get pecl on your OS, not yum install pecl.

On Debian/Ubuntu with the Ondrej PHP PPA: sudo apt-get install php-pear