HOWTO: Build and install luamongo on Ubuntu Server 10.10

266 views
Skip to first unread message

Matt

unread,
Jan 21, 2011, 5:59:59 PM1/21/11
to luamongo
Caveat Emptor: This procedure has not been exhaustively tested for
use from actual Lua code. It is intended only to get everything to
build and install. If you run into any problems, errors or omissions,
please let me know.

Prerequisites: Ubuntu 10.10 server, Lua 5.1

Note: Do NOT use the default mongodb package from Ubuntu (i.e. apt-
get install mongodb). As of the time of the writing of this document,
the default mongodb package installs version 1.4. Version 1.6 or
greater is required for luamongo.



# Install mongodb 1.6.3
# ------------------------------
mkdir ~/tmp
cd ~/tmp
sudo apt-get install devscripts
# OK
# No configuration, OK

# Install mongo dependencies (http://www.mongodb.org/display/DOCS/
Building+for+Linux)
# ------------------------------
sudo apt-get -y install tcsh git-core scons g++
sudo apt-get -y install libpcre++-dev libboost-dev libreadline-
dev xulrunner-dev
sudo apt-get -y install libboost-program-options-dev libboost-
thread-dev libboost-filesystem-dev libboost-date-time-dev
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mongodb/mongodb_1.6.3-1ubuntu1.dsc
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mongodb/mongodb_1.6.3.orig.tar.gz
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mongodb/mongodb_1.6.3-1ubuntu1.debian.tar.gz
dpkg-source -x mongodb_1.6.3-1ubuntu1.dsc
cd mongodb-1.6.3/
debuild #(catch up on your pr0n surfing while mongodb
builds)

# NOTE: You can ignore the code signing error that is spewed at the
end of the build.

cd ..
sudo dpkg -i *.deb

# Install luamongo db driver
# -------------------------------------
cd ~/tmp
sudo apt-get install subversion
svn checkout http://luamongo.googlecode.com/svn/trunk/ luamongo
cd luamongo
sudo apt-get install liblua5.1-dev
debuild
continue anyway: Y
sudo dpkg -i ../liblua5.1-mongo_0.4-1_amd64.deb



Big thanks to Evan Wies for his help in figuring this all out.
Reply all
Reply to author
Forward
0 new messages