Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我系统上安装的phpunit是老版本,我无权更改。所以我下载了一个当前版本的 phpunit 并将它(例如)放在 /home/myname/apps/PHPUnit/
我怎样才能让 phpstorm 使用那个 phpunit 而不是 /usr/bin/phpunit ?
问候,恶意
可以为每个项目或您的用户单独安装 PEAR:
$ mkdir ~/pear $ pear config-create ~/pear ~/pear/pear.conf
现在,如果您使用每个命令传递配置文件,您就可以安装软件包:
$ pear -c ~/pear/pear.conf install html_quickform2
如果您根本不想使用系统范围的 pear,请将pear.conf文件移入~/.pearrc- 它会自动覆盖任何系统设置。您无需再指定-c ~/pear/pear.conf。
pear.conf
~/.pearrc
-c ~/pear/pear.conf