I installed PHP PEAR on ubuntu using
sudo apt-get install php-pear
After a successful installation for the first time. When I try to run it in the terminal , it shows an error:
The program 'pear' is currently not installed. You can install it by typing:
sudo apt-get install php-pear
I tried to install it again. Then it shows that
php-pear is already the newest version.
I checked a lot of questions about SO. Each question refers to the whereabouts of the pear, etc. But the above error is not resolved.
I even tried to install the pear many times using sudo and run it. He gives the same error.
Please help sort it out.
source
share