gpt4 book ai didi

windows - 麻烦在 Windows 7 上安装 phpunit,wamp 服务器

转载 作者:可可西里 更新时间:2023-11-01 10:26:59 26 4
gpt4 key购买 nike

我已经尝试在 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

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

最佳答案

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

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

pear install --force --alldeps phpunit/PHPUnit 

以防万一由于缓存问题现在出现任何问题。

关于windows - 麻烦在 Windows 7 上安装 phpunit,wamp 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13393907/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com