在Ubuntu上使用Lamp安装Mongodb(Linux) [英] Installing Mongodb with Lamp On Ubuntu ( Linux )

查看:159
本文介绍了在Ubuntu上使用Lamp安装Mongodb(Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下步骤用lampp安装mongo的php驱动程序.

I followed the following steps to install mongo's php drivers with lampp.

http://abstract2paradox.wordpress .com/2012/01/26/adding-mongo-db-driver-to-xampp/

当我启动lampp时,会出现以下错误

When I start lampp its gives the following error

警告:PHP启动:无法加载动态库'/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so'-/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so:错误的ELF类:第0行的Unknown中的ELFCLASS64

有什么想法吗?

谢谢

推荐答案

问题已由上面的Derick概述.尽管解决问题的方法是下载32位版本的ubuntu os,然后使用vmware在我的PC上将其作为虚拟机运行.随后,在此页面上的手动安装"部分一个>为PHP驱动程序安装,这一切工作.如页面中所述,从github获得了php驱动程序.

The problem was as is outlined by Derick above. Although the way the problem got solved was download a 32 bit version of the ubuntu os and running it as a virtual machine on my pc using vmware. Later followed the 'Manual Installation section' on this page for the php driver installation and it all worked. Got the php drivers from github as mentioned in the page.

后来我将文件mongo.so从虚拟机上运行的php文件扩展名目录复制到了我的父操作系统,现在一切正常!

Later i copied the file mongo.so from the php file extensions directory running on my virtual machine to my parent os and it all works now!

这篇关于在Ubuntu上使用Lamp安装Mongodb(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆