$ 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
$ sudo checkinstall \ --pkgname=couchdb \ --pkgversion="1.2.0" \ --backup=no \ --deldoc=yes \ --fstrans=no \ --default
$ sudo useradd --disabled-login --disabled-password --no-create-home 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 /etc/init.d/couchdb $ sudo update-rc.d couchdb defaults
$ sudo service couchdb start $ curl http://127.0.0.1:5984/
$ sudo port selfupdate $ sudo port install couchdb $ sudo port upgrade couchdb
sudo launchctl load -w /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
sudo launchctl unload -w /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
sudo port load couchdb