これが私が行ったことです。まず、php5-dev をインストールしました。php.h は /usr/include/php5/main にあります。その後:
cd /opt/lampp/bin
./pecl install xdebug
結果:
/tmp/pear/temp/xdebug/xdebug.c:25:17: fatal error: php.h: No such file or directory
どのインクルードディレクトリを検索する必要があるかをpeclに言わなければならないと思います...しかし、どのように?