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

Tuesday, August 30, 2022

[FIXED] How do I uninstall PHP CodeSniffer on Mac OSX (10.11.6)?

 August 30, 2022     codesniffer, pear, php, phpcodesniffer, uninstallation     No comments   

Issue

I used Pear to install PHP CodeSniffer, and something went terribly wrong. It seems like most of the files weren't copied over. Perhaps I should have installed it with root privileges. It doesn't work, it's a mess, and I want to uninstall it and reinstall it, but I don't know how to uninstall it and I can't find any information about this. The Pear script is long and complicated. I tried:

pear uninstall PHP_CodeSniffer-3.2.3

It says that it's not installed.

But when I try to reinstall over the existing installation, it says I can't because it's already installed.


Solution

I found the answer. I'm posting it despite the -1 score I got for my question - up from -2. I'm sure I'm not the only one who had this problem, and it took hours of searching to find the solution. I'm not a pear expert. I only just installed it to use PHP_CodeSniffer.

The pear uninstall command didn't work because the cache needed to be cleared. These commands worked, when logged in as root. I then reinstalled as root.

pear clear-cache
pear uninstall PHP_CodeSniffer


Answered By - permutations
Answer Checked By - David Marino (PHPFixing Volunteer)
  • 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