dh_phppear command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
dh_phppear: command not found
or when using sudo you get the following error message
sudo: dh_phppear: command not found
Solutions to dh_phppear: command not found
How To Fix dh_phppear: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu dh_phppear is provided by pkg-php-tools package.
pkg-php-tools is:
Provide an easy way to package PHP PEAR, PECL and Composer packages: Run dh_make, edit debian/rules and debian/control and that’s it!
Detailed instructions can be found in included READMEs.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pkg-php-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pkg-php-tools.
sudo apt -y install pkg-php-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install pkg-php-tools
Summary
In this tutorial we learn how to fix dh_phppear command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.