Installing Couchdb v1.1 on Ubuntu 10.04 LTS

The repositories for Ubuntu 10.04 LTS only contain packages for Couchdb v1.0. The Couchdb Wiki has instructions for manual installation on Ubuntu, but it also provides a pointer to the build-couchdb project on GitHub.

Using build-couchdb, here’s how I built, installed and ran Couchdb on my Ubuntu 10.04 LTS system:

# remove the old Couchdb (could have just disabled...)
sudo apt-get uninstall couchdb

# get the dependencies required by build-couchdb
sudo apt-get install make gcc zlib1g-dev libssl-dev libreadline5-dev rake

# download and build as couchdb user
sudo su couchdb
cd ~

# clone and prepare build-couchdb
git clone git://
cd build-couchdb/
git submodule init
git submodule update

# build couchdb

# switch to root to install init script
sudo su

# install init script
cd /etc/init.d
ln -s ~couchdb/build-couchdb/build/etc/init.d/couchdb couchdb-1.1.0
update-rc.d couchdb-1.1.0 defaults

# start couchdb
/etc/init.d/couchdb-1.1.0 start

# back to user mode

# test
# expected output: {"couchdb":"Welcome","version":"1.1.0"}

Drop dead simple – thanks to build-couchdb 🙂

Comments are closed.