使用pecl安装Xdebug for MAMP

Jam*_*ton 6 install xdebug pecl

http://xdebug.org/docs/install上,我读到:

Installing with PEAR/PECL is as easy as:

# pecl install xdebug
Run Code Online (Sandbox Code Playgroud)

当我尝试此操作时,出现错误:

$ pecl install xdebug
bash: pecl: command not found
Run Code Online (Sandbox Code Playgroud)

在包含pecl的文件夹中再试一次:

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
Run Code Online (Sandbox Code Playgroud)

但是,访问pecl.php.net/xdebug会重定向到http://pecl.php.net/package/xdebug,这表明该软件包显然存在。

我还能尝试什么?

小智 5

尝试运行以下命令,

pecl频道更新pecl.php.net