Ubuntu:安装Xdebug的问题

我想在Ubuntu最新版本上安装XDebug,但得到以下错误:

pecl install Xdebug WARNING: configuration download directory "/build/buildd/php5-5.2.10.dfsg.1/pear-build-download" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user jigal@LT-Jigal:/$ sudo pecl install Xdebug downloading xdebug-2.0.5.tgz ... Starting to download xdebug-2.0.5.tgz (289,234 bytes) .................done: 289,234 bytes 67 source files, building running: phpize sh: phpize: not found ERROR: `phpize' failed 

我该如何解决这个问题?

安装php5-dev包应该可以解决你的问题。 你可以在http://packages.ubuntu.com/上find这个信息,用phpize5(自动链接到phpize)