yum 在 centos 上安装 php-pear*

2022-01-13 00:00:00 linux yum centos php pear

我正在尝试在我的 centos 上安装 pear.

I'm trying to install pear on my centos.

我使用*yum install php-pear**"来安装pear,它似乎安装成功.没有错误.我重新启动我的服务器.

I've used "*yum install php-pear**" to install pear and it seemed to install with success. No errors. I restart my server.

但是,当我检查 phpinfo() 时.我看到我的 php 仍然是使用--without-pear"构建的.

However when I check out phpinfo(). I see that my php is still built using "--without-pear".

yum 不应该用梨重建我的 php 吗?可能出了什么问题?

Isn't yum supposed to rebuild my php with pear? What would be possibly going wrong?

谢谢!

推荐答案

试试类似

$ pear list

$ pear info PEAR

- 现在,如果您在第一种情况下获得已安装软件包的列表,并在第二种情况下获得有关安装 pear 版本的信息,您就可以使用它了.

- now if you get a listing of installed packages in the first case and information on what version of pear is installed in the second you're ready to use it.

相关文章