sudo: pecl7.2-sp: command not found sudo: pecl7.2-sp: command not found apache apache

sudo: pecl7.2-sp: command not found


I am on ubuntu 16:04 and the following got it working for me (more or less):

Run the following command:

sudo apt-get install php-pear php-dev

Now you can run the command pecl instead pecl7.2-sp - seems to work fine though:

sudo pecl install geoip-beta

Hope that helps.


I had to install imagick for php7.3 so I was getting same error using command like this

sudo pecl7.2-sp install imagick

What worked for me is running the command like this

pecl -d php_suffix=7.3 install -f imagick