yum在centos上安装php-pear *

时间:2021-05-28 07:14:01

I'm trying to install pear on my centos.

我正试图在我的centos上安装pear。

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

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

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

但是当我检查出phpinfo()时。我看到我的php仍然使用“--without-pear”构建。

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

是不是应该用梨重建我的PHP?什么可能会出错?

Thanks!

5 个解决方案

#1


12  

Try something like

尝试类似的东西

$ pear list

and

$ pear info 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.

- 现在,如果您在第一种情况下获得已安装软件包的列表,并且在第二种情况下您已准备好使用它,那么有关安装了哪个版本的pear的信息。

#2


4  

The output of phpinfo() is correct; the binary was built without PEAR. Fortunately what it says there doesn't matter. Look into the sections below to see what is currently available.

phpinfo()的输出是正确的;二进制是在没有PEAR的情况下构建的幸运的是它说没关系。请查看以下部分,了解当前可用的内容。

#3


1  

yum does not rebuild anything. It downloads the necessary software modules and installs it on your machine. Your stock centos php does not have pear pre-compiled, but it will still be able to use pear once you've downloaded your modules.

yum不会重建任何东西。它会下载必要的软件模块并将其安装在您的计算机上。您的股票centos php没有预先编译的梨,但是一旦您下载了模块,它仍然可以使用pear。

If you cannot run pear, make sure you have the executable included in your path, or use "locate" to find it.

如果您无法运行pear,请确保路径中包含可执行文件,或使用“locate”查找它。

#4


0  

You might still need to configure PEAR, did you check the PEAR site?

您可能仍需要配置PEAR,是否检查了PEAR站点?

#5


0  

Resolved, I have installed the given packages and restarted the server.

解决了,我已经安装了给定的包并重新启动了服务器。

Try this yum install php-pear php-gd php-pear-DB -y service httpd restart.

试试这个yum install php-pear php-gd php-pear-DB -y service httpd restart。

it works

#1


12  

Try something like

尝试类似的东西

$ pear list

and

$ pear info 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.

- 现在,如果您在第一种情况下获得已安装软件包的列表,并且在第二种情况下您已准备好使用它,那么有关安装了哪个版本的pear的信息。

#2


4  

The output of phpinfo() is correct; the binary was built without PEAR. Fortunately what it says there doesn't matter. Look into the sections below to see what is currently available.

phpinfo()的输出是正确的;二进制是在没有PEAR的情况下构建的幸运的是它说没关系。请查看以下部分,了解当前可用的内容。

#3


1  

yum does not rebuild anything. It downloads the necessary software modules and installs it on your machine. Your stock centos php does not have pear pre-compiled, but it will still be able to use pear once you've downloaded your modules.

yum不会重建任何东西。它会下载必要的软件模块并将其安装在您的计算机上。您的股票centos php没有预先编译的梨,但是一旦您下载了模块,它仍然可以使用pear。

If you cannot run pear, make sure you have the executable included in your path, or use "locate" to find it.

如果您无法运行pear,请确保路径中包含可执行文件,或使用“locate”查找它。

#4


0  

You might still need to configure PEAR, did you check the PEAR site?

您可能仍需要配置PEAR,是否检查了PEAR站点?

#5


0  

Resolved, I have installed the given packages and restarted the server.

解决了,我已经安装了给定的包并重新启动了服务器。

Try this yum install php-pear php-gd php-pear-DB -y service httpd restart.

试试这个yum install php-pear php-gd php-pear-DB -y service httpd restart。

it works