phpUnit:install:windows7: 路径问题
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 目录而不是 except C:\Program Files。
怎么解决?可能有人有 phpunit.bat 用于安装。
谢谢
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"
Installator try to write to c:\Program directory instead of Except C:\Program Files.
How to solve? Possible somebody have phpunit.bat for installation.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最有可能的是它不喜欢“程序文件”中的空间。您必须告诉它使用不同的临时目录,或者通过 Windows 仍然支持向后兼容的 8.3 缩短版本来指定它。
Most likely it's not liking the space in "program files". You'll have to tell it to use a different temporary directory, or specify it via the 8.3 shortened version that Windows still supports for backwards compatibility.