phpUnit:安装:windows7:路径问题

时间:2011-05-12 14:52:55

标签: php windows phpunit

C:\Program Files\PHP>pear install phpunit/PHPUnit
Did not download optional dependencies: ezc/ConsoleTools, use --alldeps to download automatically

downloading PHPUnit-3.5.13.tgz ...
Starting to download PHPUnit-3.5.13.tgz (118,553 bytes)
..........................done: 118,553 bytes
could not extract the package.xml file from "C:\Program Files\PHP\tmp\PHPUnit-3.5.13.tgz" Unable to create directory 'C:/Program/tmp42BA.tmp'
Unable to create path for C:/Program/tmp42BA.tmp/package.xml
Download of "phpunit/PHPUnit" succeeded, but it is not a valid package archive
Error: cannot download "phpunit/PHPUnit"

安装程序尝试写入c:\ Program目录而不是C:\ Program Files。

如何解决?可能有人安装了phpunit.bat。

谢谢

1 个答案:

答案 0 :(得分:1)

很可能它并不喜欢“程序文件”中的空间。您必须告诉它使用不同的临时目录,或通过Windows仍支持向后兼容的8.3缩短版本指定它。