Mongodb 在Ubuntu 11.10上安装LuaMongo

Mongodb 在Ubuntu 11.10上安装LuaMongo,mongodb,ubuntu,lua,Mongodb,Ubuntu,Lua,我已经研究并查看了安装luamongo的帖子- 但是安装不会起作用。我已经安装了mongodb-10gen版本2.0.3和lua5.1版本5.1.4.10 如何从下载并安装luamongo,并使其作为lua脚本中的导入语句工作,以便能够写入mongo db?任何建议都会有帮助,到目前为止,我所尝试或阅读的任何建议都没有帮助。如果需要更多信息,我会发布。提前谢谢。我从我的一个朋友那里得到了这个脚本,应该会有帮助: # Download mongodb and driver wget http://

我已经研究并查看了安装luamongo的帖子-

但是安装不会起作用。我已经安装了mongodb-10gen版本2.0.3和lua5.1版本5.1.4.10


如何从下载并安装luamongo,并使其作为lua脚本中的导入语句工作,以便能够写入mongo db?任何建议都会有帮助,到目前为止,我所尝试或阅读的任何建议都没有帮助。如果需要更多信息,我会发布。提前谢谢。

我从我的一个朋友那里得到了这个脚本,应该会有帮助:

# Download mongodb and driver
wget http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-v2.0-latest.tgz
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz

# Extract each
tar xvzf mongodb-linux-x86_64-2.0.2.tgz
tar xvzf mongodb-linux-x86_64-v2.0-latest.tgz

# Add mongo bin to PATH
export PATH=$PATH:~/mongodb-linux-x86_64-2.0.2/bin

# Grab dev tools and dependencies (May need to run apt-get update to download all)
sudo apt-get -y install tcsh scons libpcre++-dev libboost-dev libreadline-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-date-time-dev gcc g++ git lua5.1-dev make

# Grab latest luamongo (will need to add your github ssh key)
git clone git@github.com:moai/luamongo

# Compile mongo driver
cd mongo-cxx-driver-v2.0
sudo scons install

# Install where lua can load it
sudo cp libmongoclient.* /usr/lib

我无法通过git克隆来获取luamongo,您可以使用github上提供的http地址进行wget吗?