我正在尝试在 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/上找到此信息,使用 phpize5(自动链接到 phpize)