Installing CouchDB 2.1 on Ubuntu Server 16.04

3.5k Views Asked by At

Does anyone know how to install CouchDB on Ubuntu Server 16.04?

The manual in the CouchDB docs seems to be broken and a simple apt-get install couchdbresults in Version 1.6.1.

4

There are 4 best solutions below

4
On BEST ANSWER

Try the snap for CouchDB, there isn't an apt package for CouchDB 2.1 yet. http://docs.couchdb.org/en/latest/install/snap.html. (If this is what you already tried from the manual and it didn't work, share any error messages you received)

0
On

I setup CouchDB 2.1.1 on a Digital Ocean droplet, running on Ubuntu 16 (xenial), with HTTPS (using a Let's encrypt free certificate).

Rough steps where as follows,

I later saw the following which was close to what I did and one of the better guides available, https://www.joshmorony.com/creating-a-couchdb-database-on-an-ubuntu-server-digital-ocean/

1
On

This will install CouchDB 2.1:

  1. Add "deb https://apache.bintray.com/couchdb-deb xenial main" to /etc/apt/sources.list using your favorite editor
  2. Add the public key to apt:

    curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -

  3. Depending on your setup you may need to install https for apt

    sudo apt-get install apt-transport-https

  4. Update apt and install!

    sudo apt-get update && sudo apt-get install couchdb

0
On

You can use this script to install coushDB 2.x on Ubuntu 16.04 : https://github.com/afiskon/install-couchdb :

 mkdir temp
 cd temp
 wget https://raw.githubusercontent.com/afiskon/install-couchdb/master/install-couchdb.sh
sh install-couchdb.sh
# then see http://localhost:5984/_utils/