迄今为止,我在网上进行了广泛搜索,目前我卡在了Xdebug“安装向导”的部分,该部分告诉我在下载的源代码上运行“phpize”。
当我运行
phpize
时,我会收到以下消息:new-host-2:xdebug-2.2.0 Dima$ phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
如果我执行which phpize
,我会得到:
new-host-2:xdebug-2.2.0 Dima$ which phpize
/usr/bin/phpize
这不是我想要使用的版本。我想使用MAMP安装的版本
phpize
,因为我想在MAMP版本的PHP上安装Xdebug。这很困惑,因为我已经将MAMP特定的PHP bin路径添加到我的.bash_profile中并加入了$PATH
变量。如果我运行
echo $PATH
,我会得到:new-host-2:xdebug-2.2.0 Dima$ echo $PATH
/opt/local/bin:/opt/local/sbin:/Applications/MAMP/bin/php/php5.4.3/bin:/Users/Dima/.rvm/gems/ruby-1.9.2-p290/bin:/Users/Dima/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/Dima/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/Dima/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
"MAMP特定的PHP路径显示在'/usr/bin'之前。接下来我尝试运行MAMP特定的
phpize
,手动提供整个路径,如下所示:"new-host-2:xdebug-2.2.0 Dima$ /Applications/MAMP/bin/php/php5.4.3/bin/phpize
-bash: /Applications/MAMP/bin/php/php5.4.3/bin/phpize: Permission denied
现在我在Finder上检查了这些文件的权限,显示我对这个文件夹中的文件有完全的读写权限。我有点迷茫。