Install Pear Extension with PHP Installer

人盡茶涼 提交于 2019-12-08 07:26:46

问题


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:


I solved the problem.

It turns out that you have to select the PEAR option under extension menu when selecting the components for PHP installation in order to install PEAR package.

http://lh4.ggpht.com/_SDci0Pf3tzU/SgBXLClDWEI/AAAAAAAAEuI/TgnBA_SEHFs/s400/pear%20install.jpg




回答2:


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.



来源:https://stackoverflow.com/questions/824050/install-pear-extension-with-php-installer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!