加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

无法在XAMPP中安装PHPUnit pear包

发布时间:2020-12-13 22:08:13 所属栏目:PHP教程 来源:网络整理
导读:这是我的问题.我已经在XAMPP社区论坛中提出了这个问题 但没有回复.也许有些人可以提供帮助. 我正在使用以下配置运行XAMPP 赢7,32位 xampp-win32-1.7.4-VC6 我想通过pear更新PHPUnit,我可以将它用于Selenium Testing 首先,添加我的频道 梨通道 – 发现pear.ph
这是我的问题.我已经在XAMPP社区论坛中提出了这个问题
但没有回复.也许有些人可以提供帮助.

我正在使用以下配置运行XAMPP

>赢7,32位
> xampp-win32-1.7.4-VC6

我想通过pear更新PHPUnit,我可以将它用于Selenium Testing

首先,添加我的频道

梨通道 – 发现pear.phpunit.de

然后我安装包

pear安装phpunit / PHPUnit

就在这里,我总是得到相同的错误信息……

Warning: file_exists (): Unable to find the wrapper "channel" - did you forget to
enable it when you configured PHP? in PEAR  Downloader  Package.php on line 1416

Warning: is_file (): Unable to find the wrapper "channel" - did you forget to ena
ble it when you configured PHP? in PEAR  Downloader  Package.php on line 1425

Warning: is_file (): Unable to find the wrapper "channel" - did you forget to ena
ble it when you configured PHP? in PEAR  Downloader  Package.php on line 1425

我甚至试图完全重新安装xampp,这没有帮助.

我也做了一个

pear install phpunit/PHPUnit

没改变一件事.

这可能是由于火灾设置?

我希望有人可以帮我解决这个问题.

最好的祝福

杰里米

解决方法

杰里米

我的电脑环境设置完全一样……

赢7,32位
XAMPP-win32-1.7.4,VC6

>您的系统上安装了什么版本的梨……输入“pear info pear”(不带引号).
>您至少需要1.9.1版本.如果没有输入“梨升级梨”
>提示 – 以管理员身份打开cmd – 这会产生巨大的差异
>还可以尝试“pear remote-list -c phpunit”来发现你在phpunit中拥有的软件包
>和“pear install phpunit / the_package_name”

它对我有用 – 我希望这有帮助…还有其他方法,但我发现这是Windows 7中xampp 1.7.4最有效的方法

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读