Using PEAR/PECL extensions within OpenSolaris
I ran into couple of questions by OpenSolaris users (unfortunately posted at various different places) wondering as to how to use PHP extensions either PEAR or PECL based extensions within OpenSolaris. In OpenSolaris, say to download and install - say any PECL extension, one would do some thing like
| sriramn@sriramn:$ pfexec /usr/php/bin/pecl install <extension name> |
The downloaded and installed extensions will be available at /var/php/5.2/modules location.
Note: If any PECL extension depends on any third party library to be available on the system, please make sure that those libraries first exist on OpenSolaris by searching OpenSolaris pkg database
Similarly, if you would like to the most popular XML Parser PEAR extension within your application, you could simply run the following command..
| sriramn@sriramn:$ pfexec /usr/php/bin/pear install XML_Parser |

