System or local when installing PEAR for PHPUnit

∥☆過路亽.° 提交于 2019-12-09 22:58:39

问题


I am using XAMPP 1.8.1. I need to write code with PHPUnit. When I try to install PEAR using command prompt, I get the message below:

Are you installing a system-wide PEAR or a local copy?

Could some one suggest which option I should use? Thanks in advance.


回答1:


PEAR is usually installed system-wide. The benefit of this is that the various packages can be reused between different projects.

One reason why you might install a local copy of PEAR is that the administrator[s] of the server you are installing on might be reluctant to install additional packages or upgrade existing ones.

By performing a local install of PEAR you can choose the location of where the PEAR installer places the packages/PEAR code that you install.

So, another reason for installing local, even multiple, copies of PEAR is to have separate installs for each project you might be working on, though using Composer in this scenario is much more common place.

Naturally if you do install a local copy of PEAR then you will need to adjust your include-path accordingly.



来源:https://stackoverflow.com/questions/21753295/system-or-local-when-installing-pear-for-phpunit

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