0

我无法在我的 Ubuntu 12 服务器中安装任何 pecl。这里的错误:

$ sudo pecl install mongo
downloading mongo-1.3.2.tgz ...
Starting to download mongo-1.3.2.tgz (120,931 bytes)
..........................done: 120,931 bytes
49 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:36: error: AC_REQUIRE_AUX_FILE: requires a literal argument
aclocal.m4:124: PHP_CANONICAL_HOST_TARGET is expanded from...
aclocal.m4:1980: PHP_SHLIB_SUFFIX_NAMES is expanded from...
configure.in:36: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed

我已经安装了 php5-dev、m4 和 phpize 我也尝试手动安装 mongo 驱动程序并发生同样的错误。在 configure.in 的第 36 行,我们有: PHP_SHLIB_SUFFIX_NAMES

我的 PHP 版本:带有 Suhosin-Patch (cli) 的 PHP 5.3.10-1ubuntu3.4(构建时间:2012 年 9 月 12 日 18:59:41)

4

0 回答 0