PHPUnit安装错误
运行我的 Pear phpunit/PHPUnit 安装时 - 这是我收到的错误
开始下载 YAML-1.0.6.tgz(10,010 字节) .....完成:10,010 字节 不支持 package.xml 版本“2.1”,仅支持 1.0 和 2.0。
“symfony/YAML”下载成功,但它不是有效的包存档
有人见过这个吗?
When running my Pear phpunit/PHPUnit install - this is the error I get
Starting to download YAML-1.0.6.tgz (10,010 bytes)
.....done: 10,010 bytes
package.xml version "2.1" is not supported, only 1.0 and 2.0 are supported.Download of "symfony/YAML" succeeded, but it is not a valid package archive
Has anyone seen this before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您很可能使用的是旧版本的 Pear。
尝试运行以下命令
You most likely have an old version of Pear.
Try running the following
我遇到了同样的问题,最终重新安装了 symfony/YAML 并且它起作用了,我的错误是:
所以我卸载了:
从中我重新安装了它想要的版本
并重新运行安装:
I was getting the same issue and ended up reinstalling symfony/YAML and it worked, my error was:
So I uninstalled:
From that I reinstalled the version it wanted
And re-ran the install:
在遵循 http://www.phpunit.de/manual 后,CentOS 5.8 上出现同样的问题/3.6/en/installation.html,我解决了它
这导致
我能够成功运行
导致
Same issue on CentOS 5.8 after following http://www.phpunit.de/manual/3.6/en/installation.html, I resolved it with
which resulted in
allowing me to successfully run
resulting in