0
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:安裝:windows7:路徑問題
如何解決?可能有人安裝了phpunit.bat。
謝謝
很可能它不喜歡「程序文件」中的空間。您必須告訴它使用不同的臨時目錄,或者通過Windows爲支持向後兼容性而縮短的8.3版本來指定它。 – 2011-05-12 14:56:10
@Marc B:好主意!謝謝!!!寫答案)))我會在你的答案上設置'V'。 – 2011-05-12 15:02:29
@Marc據我所知,這是正確的。謹慎發佈它作爲答案? :) ---有點相關:http://stackoverflow.com/questions/5801111/installing-pear-and-phpunit-with-xampp/5801138#5801138 – edorian 2011-05-12 15:04:17