2

I've installed ubuntu 10.04 LTS, and ran apt-get install couchdb. This installed 0.10.0, however the newest is 0.11.0 and I would like to install that from source.

What's the appropriate way of upgrading the current install to the newest version?

WedTM
  • 301
  • 4
  • 16

2 Answers2

5

Couchdb installs very nicely and fairly easily on Ubuntu 10.04.

  1. Copy your database files somewhere else. They are probably in /var/lib/couchdb.
  2. Copy your /etc/couchdb/local.ini file (if you've changed it at all) somewhere else.
  3. use apt-get to remove the couchdb packages.
  4. make sure that all of files installed by the packages are removed. If you don't do this you may get strange errors later.
  5. then follow the instructions on the Installing on Ubuntu page Eric Edin linked to. You will need to make the adjustments mentioned for 10.04, and the bit about /etc/ld.so.conf.d/xulrunner.conf toward the bottom.
  6. Copy your database files back into /var/lib/couchdb and put any changes back into the local.ini file and restart couchdb
David
  • 66
  • 1
  • Nice. Also, in my case the couchdb command kept giving error messages like `{"init terminating in do_boot",{{badmatch,{error,{bad_return` after upgrading. I had to manually kill the process (after backing up the `/var/lib/couchdb` and `/etc/couchdb/local.ini`) and restart it (and do http://stackoverflow.com/a/24043164/896657) – Erfan Jun 01 '15 at 16:39
2

On the CouchDB wiki there are instructions for building 0.11 from source.

Installing on Ubuntu

Erik Edin
  • 151
  • 3