我需要在当前的php7 - CentOS7设置上安装php-pear软件包。我尝试过使用remi rpm存储库,但它创建了一个新的php包。我需要现有的。有人可以帮忙吗?
答案 0 :(得分:0)
# verify that you do not have any php-pear package installed
sudo yum list installed | grep "php*-pear"
# verify what php version your command line is using (which is _likely_
# to be the same than your web server)
php -v
# see what are the available php-pear package
sudo yum list available | grep "php*-pear"
#install the relevant php pear package
sudo yum install php71w-pear
相关帖子(不重复,但可能对某些人有帮助)yum install php-pear* on centos