pecl
How to install php extension using pecl for specific php version, when several php versions installed in system?
Here’s what worked best for me when trying to script this (in case anyone else comes across this like I did): $ pecl -d php_suffix=5.6 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.0 install <package> $ pecl uninstall -r <package> $ pecl -d php_suffix=7.1 install <package> $ pecl uninstall -r <package> The … Read more
Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)
There’s a much easier way — no need to disable SIP or download your own copy: sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
Howto: Install Imagick (for php) on Ubuntu 11.10
The package has a different name in Ubuntu. sudo apt-get install php5-imagick The error with building via PECL means you must install libmagickwand-dev, libmagickcore3, libmagickwand3 probably (there are alternatives: graphicsmagick-imagemagick-compat, see Synaptic).
configure: error: Please reinstall the libzip distribution
Solved it: apt-get install libzip-dev will install the missing libzip-distribution
Install PECL modules without the prompts
The following code seems to work ok: printf “\n” | pecl install apc You can also replace apc with any other PECL package. Cheers.
$PHP_AUTOCONF errors on mac os x 10.7.3 when trying to install pecl extensions
brew install autoconf Much easier solution
What are differences between PECL and PEAR?
PECL stands for PHP Extension Community Library, it has extensions written in C, that can be loaded into PHP to provide additional functionality. You need to have administrator rights, a C compiler and associated toolchain to install those extensions. PEAR is PHP Extension and Application Repository, it has libraries and code written IN php. Those … Read more