Installing Geo CouchDB from source

These steps work on Debian 6 and Ubuntu 11.04. The build takes a while and although the procedure is probably not ideal I was happy to end up with a working Geo CouchDB. Corrections and suggestions are welcome.

# get required packages
sudo apt-get install make gcc zlib1g-dev libssl-dev libreadline5-dev build-essential

# fetch the couchdb build project and dependencies
git clone git://github.com/couchone/build-couchdb
cd build-couchdb
git submodule init
git submodule update

# build couchdb with geocouch plugin and install to home dir
sudo rake git="git://git.apache.org/couchdb.git tags/1.1.0" \
  plugin="git://github.com/couchbase/geocouch.git tags/couchbase_1.1_geo" \
  install=/home/hcvst/geocouchdb

# change owner
cd
sudo chmod -R hcvst:hcvst geocouchdb

# help Erlang find plugin's .beam files 
# on Ubuntu
export ERL_FLAGS="-pa /home/hcvst/geocouchdb/lib/plugins/geocouch.git/ebin"
# on Debian
export ERL_FLAGS="-pa /home/hcvst/geocouchdb/lib/couchdb/plugins/geocouch/ebin"

# add couchdb to path and launch it 
source geocouchdb/env.sh
couchdb

# Access Futon at http://localhost:5984/_utils - Geo should work too.
Advertisements
This entry was posted in couchdb. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s