【发布时间】:2014-12-09 21:01:22
【问题描述】:
我在为 MAMP 3.0.7.3 安装带有 pecl 的 SPL_Types 时遇到问题。请注意,我不使用“专业版”MAMP。如何为 MAMP 的基本版本安装这个或任何 pecl 包?
当我运行pecl install pecl/SPL_Types 命令时,输出为:
pecl install pecl/SPL_Types
downloading SPL_Types-0.4.0.tgz ...
Starting to download SPL_Types-0.4.0.tgz (8,388 bytes)
.....done: 8,388 bytes
6 source files, building
running: phpize
grep: /Applications/MAMP/bin/php/php5.6.2/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.6.2/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.6.2/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
我了解到,对于旧版本的 MAMP,有一个额外的“服务器组件和库”可供下载,可以提供缺失的部分。但是,这似乎不再可用。
现在正确的程序是什么?
【问题讨论】: