mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home
couchdb @Dec 8, 2012 12:15:10 PM

Installing couchdb on Ubuntu 10.04


Lines starting with $ should be typed into a Bash console.
Other lines are either the contents of a file you need to edit, or are continuations of the line above.

Build couchdb

$ sudo apt-get build-dep couchdb
$ sudo apt-get install xulrunner-1.9.2-dev libicu-dev libcurl4-gnutls-dev libtool erlang-eunit erlang-nox
$ sudo vim /etc/ld.so.conf.d/xulrunner.conf

/usr/lib/xulrunner-1.9.2.17
/usr/lib/xulrunner-devel-1.9.2.17

$ sudo /sbin/ldconfig

$ wget http://www.gtlib.gatech.edu/pub/apache/couchdb/releases/1.2.0/apache-couchdb-1.2.0.tar.gz
$ tar -zxf apache-couchdb-1.2.0.tar.gz 
$ cd apache-couchdb-1.2.0/
$ ./configure
$ make


Install couchdb

This makes a deb - which is handy if you want to install the same build elsewhere, or remove the build.

$ sudo checkinstall \
	--pkgname=couchdb \
	--pkgversion="1.2.0" \
	--backup=no \
	--deldoc=yes \
	--fstrans=no \
	--default


Configure couchdb

unfortunatly the build only allows couchdb to be run as root. We want to run couchdb as the user couchdb, so some changes have to be made.

sudo useradd -d /usr/local/var/lib/couchdb couchdb

sudo chown -R couchdb: /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb
sudo chmod 0770 /usr/local/var/{lib,log,run}/couchdb/
sudo chmod 664 /usr/local/etc/couchdb/*.ini
sudo chmod 775 /usr/local/etc/couchdb/*.d

$ sudo ln /usr/local/etc/init.d/couchdb couchdb
$ sudo update-rc.d couchdb defaults


Start and test couchdb


$ sudo service couchdb start
$ curl http://127.0.0.1:5984/


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2023.