Skip to content

Instantly share code, notes, and snippets.

@ngpestelos
Created October 21, 2011 11:36
Show Gist options
  • Save ngpestelos/1303627 to your computer and use it in GitHub Desktop.
Save ngpestelos/1303627 to your computer and use it in GitHub Desktop.
Installing CouchDB 1.1 from Source on Ubuntu 10.4

Fresh installation of Linux Mint 10. Most of the steps work except for linking with the JS libs in xulrunner.

My initial attempt to use build-couchdb failed; I decided to compile CouchDB 1.1 from source.

Install Erlang dependencies

  • $ sudo apt-get install build-essential
  • $ sudo apt-get install zlib1g-dev libssl-dev libreadline5-dev

Build Erlang OTP R14B04

  • Go to otp source tree.
  • $ ./configure
  • $ make && sudo make install

Install CouchDB dependencies

  • $ sudo apt-get install xulrunner-1.9.2-dev libicu-dev libcurl4-gnutls-dev libtool

Create symlinks for JS libraries

  • $ cd /usr/lib
  • $ sudo ln -s /usr/lib/xulrunner-1.9.2.23/libmozjs.so .
  • $ cd /usr/include
  • $ sudo ln -s /usr/lib/xulrunner-devel-1.9.2.23/include/js* .

Build CouchDB 1.1

  • Go to couchdb source tree.
  • $ ./configure
  • $ make && sudo make install

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment