Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yum install php-pear* on centos

I'm trying to install pear on my centos.

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

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

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

Thanks!

like image 824
Haluk Avatar asked Jan 22 '10 17:01

Haluk


People also ask

Is PHP PEAR installed?

Yes, the standard PEAR packages are included in all PHP installations. However, if your application requires a certain PEAR package which is not included, check our Pear Modules tutorial.

How do I update my PEAR OS?

First, install PEAR. Next, tell PEAR to update its own channel. Then, tell PEAR to upgrade itself to the newest version. You should now have the newest version of PEAR installed.


3 Answers

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.

like image 106
kguest Avatar answered Sep 22 '22 20:09

kguest


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.

like image 23
Ignacio Vazquez-Abrams Avatar answered Sep 21 '22 20:09

Ignacio Vazquez-Abrams


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.

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

like image 27
futureelite7 Avatar answered Sep 24 '22 20:09

futureelite7