Skip to content

Instantly share code, notes, and snippets.

@bsquared
Created October 23, 2012 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsquared/3940371 to your computer and use it in GitHub Desktop.
Save bsquared/3940371 to your computer and use it in GitHub Desktop.
Installing CouchDb Manually on Ubuntu
  • make sure software is up to date.
    • sudo apt-get update
    • sudo apt-get upgrade
  • install dependencies - the order is important, some may need to removed and the reinstalled later in the list. For some reason there are one way conflicts. Some may be installed already and need not be re-installed. apt-get will let you know.
    • sudo apt-get build-dep erlang
    • sudo apt-get build-dep couchdb
    • sudo apt-get install libicu-dev libcurl4-gnutls-dev
    • sudo apt-get install automake autoconf libtool help2man
    • sudo apt-get install libmozjs-dev
    • sudo apt-get install libcurl4-openssl-dev
    • sudo apt-get install openssl libssl-dev
  • get and build erlang
  • get and build couchdb
  • configure couchdb user and environment
    • sudo adduser --home /usr/local/var/lib/couchdb --shell /bin/bash couchdb
    • sudo chown -R couchdb: /usr/local/var/lib/couchdb /usr/local/var/log/couchdb /usr/local/var/run/couchdb /usr/local/etc/couchdb
    • sudo ln -s /usr/local/etc/init.d/couchdb /etc/init.d/couchdb
    • sudo update-rc.d couchdb defaults
    • edit /usr/local/etc/couchdb/local.ini and /usr/local/etc/couchdb/default.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment