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"

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

5
  • 1
    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. Commented May 12, 2011 at 14:56
  • @Marc B: Great idea! Thanks!!! Write answer ))) I will set 'V' on your answer. Commented May 12, 2011 at 15:02
  • @Marc As far as i know thats correct. Care to post it as an answer? :) --- Somewhat related: stackoverflow.com/questions/5801111/… Commented May 12, 2011 at 15:04
  • @edorian: Related, but answer does not explain solution. just open commd prompt, it is not solution. Commented May 12, 2011 at 15:08
  • I was rather going for the "you need admin rights to for pear to work in certain folders" Commented May 12, 2011 at 16:31

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.