tags:

views:

761

answers:

3

I install PHP using the PHP installer. And so, the PEAR package is not included. The question now is I need PEAR for Symfony upgrade purpose, but the resources I found on the internet seem to cater for the case where PEAR package is already included in PHP package.

What is the best way to install PEAR extension, given that I use PHP installer for installation purpose?

+1  A: 

PEAR is just a set of libraries that ship with PHP, but you can also install PEAR manually.

While you solve the issue with your PHP installation, you can follow the instructions available at http://pear.php.net/manual/en/installation.getting.php under the " PEAR in hosting environments" section.

MC
As explained I am using the installer for PHP, so PEAR package is NOT included. You are just saying that the PEAR is there ( which is true if you use the PHP zip file but not the PHP installer)... not sure your advice solves my problem...
Ngu Soon Hui
You can install PEAR as a library after installing PHP, installers just make your life easier, but that's not the only way to get PEAR.Anyway, I saw that you solved your problem. Keep in mind for the next time that PEAR can be just "glued" to your PHP installation even after installing, without the need to reinstall the whole stuff.You can get more information about this in the URL that I provided in myfirst comment.
MC
+1  A: 
Ngu Soon Hui
A: 

You can also install PEAR after the fact - you can find a tutorial that shows you how here.

Phyxx