0

这就是我得到的:

bitnami@ip-10-117-57-211:/bin$ sudo pecl install mongo

downloading mongo-1.4.0.tgz ...
Starting to download mongo-1.4.0.tgz (138,495 bytes)
..............................done: 138,495 bytes
84 source files, building
WARNING: php_bin /opt/bitnami/php/bin/php appears to have a suffix /bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
Can't load '/opt/bitnami/perl/lib/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /opt/bitnami/perl/lib/5.8.8/i686-linux/auto/Data/Dumper/Dumper.so: undefined symbol: PL_sv_undef at /opt/bitnami/perl/lib/5.8.8/i686-linux/XSLoader.pm line 70.
 at /opt/bitnami/perl/lib/5.8.8/i686-linux/Data/Dumper.pm line 36
Compilation failed in require at /usr/share/autoconf/Autom4te/C4che.pm line 33.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/C4che.pm line 33.
Compilation failed in require at /usr/bin/autom4te line 38.
BEGIN failed--compilation aborted at /usr/bin/autom4te line 38.
ERROR: `phpize' failed

任何想法如何解决?

4

2 回答 2

3

尝试手动配置,因为似乎 bitnami 有点时髦:

$ sudo apt-get update
$ sudo apt-get install build-essential libtool autoconf unzip wget 

从网页下载最新的源代码,解压并编译模块。

$ wget http://pecl.php.net/get/mongo-1.4.3.tgz
$ tar -zxf mongo*
$ export PHP_AUTOCONF=/usr/bin/autoconf
$ export PHP_PREFIX=/opt/bitnami/php
$ cd mongo-*
$ /opt/bitnami/php/bin/phpize
$ ./configure
$ make
$ sudo make install

改编自:http ://wiki.bitnami.com/Components/PHP#How_to_install_OAuth_module.3f

于 2013-08-22T13:56:09.240 回答
1

好吧,我终于让它工作了。我完成了在 mac 服务器上安装 mongo 扩展的步骤,它适用于我的 bitnami 灯堆栈。

说明在这个博客上: http: //andres.jaimes.net/857/setup-php-mongo-on-mac/

于 2013-08-23T14:50:51.650 回答