pecl install tr​​ader以ERROR结尾:`phpize'失败

时间:2017-07-01 07:23:02

标签: install pecl

我正在尝试安装交易者扩展程序。 我成功安装了pear / pecl。 当第一次运行命令“pecl install tr​​ader”时,我在不可写的文件夹上遇到了一些问题,所以我手动给出了这些读/写权限。 现在我正处于“ERROR:`phpize'失败”这一点。

请问如何解决这个问题? 我在mac 10.6.8上运行mamp服务器

computer-van-gebruiker:~ Gebruiker$ sudo pecl install trader
Password:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update

Warning: Invalid argument supplied for foreach() in PEAR/Downloader.php on line 593

Warning: Invalid argument supplied for foreach() in /usr/local/pear/share/pear/PEAR/Downloader.php on line 593
downloading trader-0.4.0.tgz ...
Starting to download trader-0.4.0.tgz (298,434 bytes)
...........................done: 298,434 bytes

Warning: Invalid argument supplied for foreach() in PEAR/PackageFile/v2/Validator.php on line 870

Warning: Invalid argument supplied for foreach() in /usr/local/pear/share/pear/PEAR/PackageFile/v2/Validator.php on line 870
332 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

1 个答案:

答案 0 :(得分:0)

您应该更加具体地了解PEAR / PECL和PHP版本。

您的问题的来源是您缺少包含C头文件的PHP开发包。

相关问题