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:

<br />
# remove the old Couchdb (could have just disabled...)<br />
sudo apt-get uninstall couchdb</p>
<p># get the dependencies required by build-couchdb<br />
sudo apt-get install make gcc zlib1g-dev libssl-dev libreadline5-dev rake</p>
<p># download and build as couchdb user<br />
sudo su couchdb<br />
cd ~</p>
<p># clone and prepare build-couchdb<br />
git clone git://<br />
cd build-couchdb/<br />
git submodule init<br />
git submodule update</p>
<p># build couchdb<br />
<p># switch to root to install init script<br />
exit<br />
sudo su</p>
<p># install init script<br />
cd /etc/init.d<br />
ln -s ~couchdb/build-couchdb/build/etc/init.d/couchdb couchdb-1.1.0<br />
update-rc.d couchdb-1.1.0 defaults</p>
<p># start couchdb<br />
/etc/init.d/couchdb-1.1.0 start</p>
<p># back to user mode<br />
<p># test<br />
curl<br />
# expected output: {&quot;couchdb&quot;:&quot;Welcome&quot;,&quot;version&quot;:&quot;1.1.0&quot;}<br />

Drop dead simple – thanks to build-couchdb 🙂

Comments are closed.