February 18th, 2017, 02:10 PM
PHP and Pear...
This may be a "server" question...
I have PHP installed.
phpinfo() indecates '--without-pear'
I've installed pear: # yum -y install php-pear
Can I use pear in php scripts without recompiling PHP '-with-pear'?
Or can I use an include with a path to the pear share?
February 18th, 2017, 05:17 PM
Search engines are your friend.
Use the PHP script to install PEAR.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
February 18th, 2017, 06:19 PM
But maybe, you know, someone has personal experience / advice that addresses specific issues and so on? You know, things that can be expressed in response to a question about something that they have, you know, experienced under the same circumstances? Maybe something like that? Who knows, maybe someone has first hand experience with the same situation and might like to pass that on?
My wild guess is that 90% of the questions here can be answered with enough Googling... Or maybe, just maybe someone knows something interesting or useful?
Just a possibility...
February 18th, 2017, 06:24 PM
I'd not use PEAR. Many packages on PEAR are not maintained regularly.
Composer is an easy to install tool that seeks to replace (and has replaced) PEAR, and it does many things much better. Additionally, if you need to, you can install PEAR repositories via composer.
Last edited by oakleaf; February 18th, 2017 at 06:28 PM.
February 19th, 2017, 02:58 AM
What phpinfo() shows is the configure command, which was used to build PHP - the same PHP you installed when you did whatever command to install the core PHP system. What Linux distributions do is then make various extensions and whatnot available through packages you install through their repositories, which were built separately from PHP. That way you don't have to install a gigantic PHP with every extension when you don't need them all.
The configure command shows you what is available in the base PHP system without needing other packages. --without-pear means PEAR does not come automatically with the build; if you want it then you install it separately (ie, with yum).
So yes: you do not need to recompile PHP for it.
February 19th, 2017, 08:39 PM
I installed pear from yum in Fedora, works fine. I didn't have to do anything but yum install php-pear
I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton