2013-11-14 177 views
2

我无法在64位linuz系统上安装php mongodb驱动程序。安装MongoDB PHP驱动程序(64bit linux)

我按照php.net手动安装指南(因为PECL安装旧版本驱动程序)

$ phpize 
$ ./configure 
$ make all 
$ sudo make install 

使所有命令给出

/mongodb_master/php_mongo.c:89: error: ‘PHP_FE_END’ undeclared here (not in a function) 
make: *** [php_mongo.lo] Error 1 

我按照PHP_FE_FUNCTION : C error when trying to enable extension,但没有成功。

+0

你的系统到底是什么?你不能使用某种存储库来安装它吗? – ZeWaren

+0

上serverfault这个问题可能涉及: http://serverfault.com/questions/317463/php-fe-function-c-error-when-trying-to-enable-extension – ZeWaren

+0

@ZeWaren我已经上述链接在我的问题。服务器是'64位'与安装PHP的5.3.2-1ubuntu4.21' – user199354

回答

0

&%$ ## $ $%&我以为这个宏定义在5.3.0中,显然不是抱歉! 但是。你似乎正在安装当前的主控,这将成为1.5.0 ..我不建议这样做,因为这仍然是在进行中。

要解决这个现在,你可以在php_mongo.h添加(其实并不重要在哪里)以下行:

#define PHP_FE_END   { NULL, NULL, NULL, 0, 0 } 

你应该下载最新的1.4.x驱动程序(目前为1.4.5 )。 如果“pecl install mongo”没有获取1.4.5驱动程序,则应该从pecl下载.tgz包。

0

我昨天遇到过这个问题,我通过重新安装php.hope解决了这个问题,这可能对你有所帮助。

相关问题