Issue
it gives error when i run below command.
pear install pear.phpunit.de/PHPUnit
WARNING: channel "pear.phpunit.de" has updated its protocols, use "pear channel-update
pear.phpunit.de" to update
downloading PHPUnit-3.6.12.tgz ...
Starting to download PHPUnit-3.6.12.tgz (119,220 bytes)
..........................done: 119,220 bytes
ERROR: failed to create /Applications/MAMP/bin/php5.3/share/pear/PHPUnit/Extensions
/PhptTestCase/.tmpLogger.php: fopen(/Applications/MAMP/bin/php5.3/share/pear/PHPUnit
/Extensions/PhptTestCase/.tmpLogger.php): failed to open stream: Permission denied
I am using mac and mamp and i want to install PHPUnit, plz help.
---edited---
i granted some permissions, now it shows below error Could not delete /Applications/MAMP/bin/php5.3/bin/phpunit, cannot rename /Applications/MAMP/bin/php5.3/bin/.tmpphpunit
Solution
Seems there is a problem with permissions.
- rm -rf /Applications/MAMP/bin/php5.3/bin/phpunit
- chmod 0777 /Applications/MAMP/bin/php5.3/ -r
And then reinstall phpunit.
Answered By - DarkFighter
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.