xdebughomebrew

Can't install xdebug on Mac with Homebrew


I'm kind of new to using Homebrew, but I love it. It's so easy. I'm trying install Xdebug. Some of the posts on the web say to do this:

brew install xdebug

But it doesn't work. I get: Error, no available formula.

I did brew search xdebug and it returned:

josegonzalez/php/php53-xdebug    josegonzalez/php/php54-xdebug

I tried several different iterations of brew install with this including brew install php53-xdebug, but still no luck. Can someone help me? I can't find anything on Xdebug's site about using Homebrew, but yet posts on the web seem to indicate it's possible.


Solution

  • Add this repository: https://github.com/josegonzalez/homebrew-php#readme

    Then use brew install php54-xdebug for PHP 5.4

    Or brew install php53-xdebug for PHP 5.3

    Or brew install php55-xdebug for PHP 5.5