【问题标题】:trouble install phpunit on windows 7, wamp server麻烦在 Windows 7 上安装 phpunit,wamp 服务器
【发布时间】:2012-11-03 20:08:54
【问题描述】:

我尝试在 Windows 7 上安装 phpunit,但我遇到了这样的问题:

C:\wamp\bin\php\php5.3.13>pear channel-discover components.ez.no
Adding Channel "components.ez.no" succeeded
Discovery of channel "components.ez.no" succeeded

C:\wamp\bin\php\php5.3.13>pear channel-discover pear.phpunit.de
Channel "pear.phpunit.de" is already initialized

C:\wamp\bin\php\php5.3.13>pear channel-discover pear.symfony.com
Channel "pear.symfony.com" is already initialized

C:\wamp\bin\php\php5.3.13>pear install --alldeps phpunit/PHPUnit
downloading PHPUnit-3.7.9.tgz ...
Starting to download PHPUnit-3.7.9.tgz (116,997 bytes)
.........................done: 116,997 bytes
Could not delete pear\phpunit, cannot rename pear\.tmpphpunit
ERROR: commit failed

我不知道发生了什么,我已经搜索了几个小时但找不到解决方案。 谢谢你的帮助!

【问题讨论】:

    标签: windows installation phpunit pear


    【解决方案1】:

    以前没有看到这个错误,但似乎是权限问题。

    尝试使用管理员权限运行 cmd 提示符并使用

    pear install --force --alldeps phpunit/PHPUnit 
    

    以防万一现在由于缓存问题而出现其他问题。

    【讨论】:

      【解决方案2】:

      您需要以管理员身份打开命令行窗口。

      请参阅此处的说明。 http://beagile.biz/php-pear-package-install-issues-on-windows/

      【讨论】:

        猜你喜欢
        • 2015-06-21
        • 2012-07-21
        • 2014-08-02
        • 1970-01-01
        • 2011-07-21
        • 1970-01-01
        • 1970-01-01
        • 2012-11-07
        • 2011-04-06
        相关资源
        最近更新 更多