【发布时间】:2013-11-03 22:55:53
【问题描述】:
安装 OS X 10.9 Mavericks 后,我在 OS X 上设置 PHP 开发环境时遇到问题。
这是我用来安装的命令。
sudo pecl install xdebug
downloading xdebug-2.2.3.tgz ...
Starting to download xdebug-2.2.3.tgz (250,543 bytes)
.....................................................done: 250,543 bytes
66 source files, building
running: 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.
ERROR: `phpize' failed
有人有解决方案或变通方法吗?
【问题讨论】:
-
你好像没有安装php dev包
-
我能够通过向 php 库添加符号链接来解决最初的几个错误。但是现在我仍然需要解决这个错误。找不到自动配置。请检查您的 autoconf 安装和 $PHP_AUTOCONF 环境变量。
-
brew install autoconf
标签: php xdebug osx-mavericks