pecl:command not found

Viewed 116259

I'm trying to run the following command in terminal on my macbook pro

cd /tmp; pecl download memcached

but im getting

pecl:command not found.

after a days googling I cant find out whats up. Does anyone have a solution?

5 Answers
apt-get update

apt-get install php-pear php5-dev

The reason you are getting this error is because Pear package is missing.

I encountered the same problem while installing PHP extensionfor MongoDB on Ubuntu. What worked for me was the following:

Install Pear Package:

sudo apt install php-dev php-pear

then you can run:

sudo pecl install memcached
Related