centos 在Php7的当前设置上安装php-pear包

dbf7pr2w  于 2022-11-07  发布在  PHP
关注(0)|答案(1)|浏览(175)

我需要在当前的php7 - CentOS7设置上安装php-pear包。我已经尝试使用remi rpm库,但是它创建了一个新的php包。我需要在现有的一个上安装它。有人能帮忙吗?

w8ntj3qf

w8ntj3qf1#


# 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

相关问题