Error installing PHP PEAR ubuntu 12.04

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.

+4
source share
2 answers

The php-pear package in Ubuntu 12.04 only works with PHP <= 5.2

For PHP> = 5.3 use

wget http://pear.php.net/go-pear.phar
php go-pear.phar
+7
source

PEAR PHP, . , .

+1

Source: https://habr.com/ru/post/1542170/


All Articles