Install Xdebug for MAMP with a key

At http://xdebug.org/docs/install I read:

Installing with PEAR/PECL is as easy as:

# pecl install xdebug

When I try to do this, I get errors:

$ pecl install xdebug
bash: pecl: command not found

Try again from the folder containing the symbol:

cd /Applications/MAMP/bin/php/php5.5.3/bin/
bash-3.2$ ./pecl install xdebug
No releases available for package "pecl.php.net/xdebug"
install failed

However, a visit to pecl.php.net/xdebug is redirected to http://pecl.php.net/package/xdebug , which indicates that the package explicitly exists.

What else can I try?

+4
source share
2 answers

Try the following command:

pecl channel-update pecl.php.net

+3
source

To make it work, I did the compilation manually and installed the debug extension with the following commands:

wget http://xdebug.org/files/xdebug-x.x.x.tgz
tar -xzvf xdebug-x.x.x.tgz
cd xdebug-x.x.x
phpize
./configure
make
make install
0
source

All Articles