Ubuntu无法安装PHPUnit

软件和网站开发以及相关技术探讨
回复
damonfutan
帖子: 9
注册时间: 2014-03-21 0:42
系统: Ubuntu
送出感谢: 1 次
接收感谢: 0

Ubuntu无法安装PHPUnit

#1

帖子 damonfutan » 2014-06-05 0:04

我是按照下面的步骤安装的

代码: 全选

sudo apt-get remove phpunit 

sudo pear channel-discover pear.phpunit.de 
 
sudo pear channel-discover pear.symfony-project.com 
 
sudo pear channel-discover components.ez.no 
 
sudo pear update-channels 
 
sudo pear upgrade-all 
 
sudo pear install --alldeps phpunit/PHPUnit 
 
sudo pear install --force --alldeps phpunit/PHPUnit
执行到 sudo pear install --alldeps phpunit/PHPUnit 命令时出现下面的错误

代码: 全选

[email protected]:/build$ sudo pear install --alldeps phpunit/PHPUnit
downloading PHPUnit-4.0.17.tgz ...
Starting to download PHPUnit-4.0.17.tgz (509,430 bytes)
..................................................................................done: 509,430 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/PHPUnit-4.0.17.tgz"
Download of "phpunit/PHPUnit" succeeded, but it is not a valid package archive
Error: cannot download "phpunit/PHPUnit"
Download failed
install failed
在网上找了很多答案,五花八门但都无法解决问题,
请高手做答,感激不尽。
回复

回到 “软件/网站开发”