Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
phpUnit:安装:windows7:路径问题_Php_Windows_Phpunit - Fatal编程技术网

phpUnit:安装:windows7:路径问题

phpUnit:安装:windows7:路径问题,php,windows,phpunit,Php,Windows,Phpunit,安装程序尝试写入c:\Program目录,而不是c:\Program文件 如何解决?可能有人安装了phpunit.bat 谢谢很可能它不喜欢“程序文件”中的空格。您必须告诉它使用不同的临时目录,或者通过Windows仍然支持向后兼容的8.3缩短版本指定它。很可能它不喜欢“程序文件”中的空格。您必须告诉它使用不同的临时目录,或者通过Windows仍然支持向后兼容的8.3缩短版本指定它。@Marc B:好主意!谢谢我会在你的答案上加上“V”。@Marc,据我所知,这是正确的。想把它作为答案贴出来吗?

安装程序尝试写入c:\Program目录,而不是c:\Program文件

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


谢谢

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

很可能它不喜欢“程序文件”中的空格。您必须告诉它使用不同的临时目录,或者通过Windows仍然支持向后兼容的8.3缩短版本指定它。@Marc B:好主意!谢谢我会在你的答案上加上“V”。@Marc,据我所知,这是正确的。想把它作为答案贴出来吗?:)--有些关联:@edorian:关联,但答案并不能解释答案。只需打开commd提示符,这不是解决方案。我更倾向于“您需要管理员权限才能使pear在某些文件夹中工作”
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"