Netbeans 与 Mac OS X 原生 PHP、PEAR PHPUnit 配置集成
我正在尝试将 Netbeans 6.9 或 7 集成到我的开发环境中(Mac OS X 10.6.7 本机 PHP 无堆栈),但无论我如何尝试,我都无法让 Netbeans 识别我的 PHP 解释器 (/usr/bin/php) 或我的 PHPUnit 脚本(/usr/local/bin/phpunit)。
任何人都会有一些不太明显的想法,尽管我可能错过了其中之一。我在网上用尽了搜索词,试图找到遇到同样问题的人,但一无所获。
编辑 过去一天,我一直在使用 phpunit --version 来验证我的 phpunit 版本(3.5.13),并使用 pear list 来验证我的 PEAR 1.9.2 安装。好吧,我刚刚发现了 pear list-all
,它显示 phpunit 为 1.3.2。输入 pear Upgrade phpunit/PHPUnit
后,我得到的响应是 Nothing to Upgrade
这可以解释 PHPUnit 脚本问题,因为显然安装了 2 个版本的 PHPUnit 和我安装的版本尝试指向一定不能绑定到 PEAR 中。
which php /usr/bin/php
which pear /usr/local/bin/pear
which phpunit /usr/local/bin/phpunit
有什么想法吗?谢谢
I am trying to integrate Netbeans 6.9 or 7 into my development environment (Mac OS X 10.6.7 native PHP no stacks) but no matter what I try I am not getting Netbeans to recognize my PHP interpreter (/usr/bin/php) or my PHPUnit script (/usr/local/bin/phpunit).
Anybody got some less than obvious ideas, although I may have missed one of those. I have exhausted search terms on the web trying to find someone who went through the same problems but nothing has come of it.
EDIT
Well for the past day I have been using phpunit --version
to verify my phpunit version (3.5.13) and pear list
to verify my PEAR 1.9.2 install. Well I just discovered the pear list-all
which shows phpunit as 1.3.2. Upon entering pear upgrade phpunit/PHPUnit
the response I get is Nothing to upgrade
This may explain the PHPUnit script problem since apparently there are 2 versions of PHPUnit installed and the one I am trying to point to must not be tied into PEAR.
which php /usr/bin/php
which pear /usr/local/bin/pear
which phpunit /usr/local/bin/phpunit
Any ideas? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
错误的 phpunit 版本
显示来自默认通道的软件包,即“pear.php.net”,除非您进行了其他配置。您确实从 pear.phpunit.de 安装了 phpunit,这是一个不同的渠道。
PHPUnit 之前(版本 1)托管在 pear.php.net 上,但后来转移到了自己的频道。
运行
显示
phpunit 3.5.13
。实际上是相同的,
因为
phpunit
是pear.phpunit.de
通道的短名称/别名。安装了两个 phpunit
您可能没有安装两个 phpunit 版本。 “list-all”列出频道上的所有可用软件包,而不仅仅是本地/已安装的软件包。
Wrong phpunit versions
shows the packages from the default channel, which is "pear.php.net" unless you configured it otherwise. You did install phpunit from pear.phpunit.de, which is a different channel.
PHPUnit previously (version 1) was hosted on pear.php.net but moved to its own channel.
Running
shows
phpunit 3.5.13
.is actually the same as
because
phpunit
is the short name/alias for thepear.phpunit.de
channel.Two phpunits installed
You probably do not have two phpunit versions installed. "list-all" lists all available packages on a channel, not only local/installed ones.
好吧,我最终放弃了 netbeans,转而使用 PhpStorm 2。我在那里没有遇到任何问题,它满足了我的需要。我很欣赏所提供的信息,因为这对我没有意识到的事情有很大帮助。
Well I finally gave up on netbeans and went over to PhpStorm 2. I am not having any problems there and it does what I need. cweiske I apprecaite the info provided as that was of great help for things I did not realize.