PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 15, 2022

[FIXED] PHPUnit installation issue

 January 15, 2022     macos, mamp, phpunit     No comments   

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.

  1. rm -rf /Applications/MAMP/bin/php5.3/bin/phpunit
  2. chmod 0777 /Applications/MAMP/bin/php5.3/ -r

And then reinstall phpunit.



Answered By - DarkFighter
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing