Wednesday, May 19, 2010

Installing CouchDB from latest guthub sources in Ubuntu Lucid

It's a 3 step process -

1. Install dependencies -

$ sudo apt-get install erlang build-essential libicu-dev libcurl4-openssl-dev xulrunner-dev

Note that libmozjs-dev is no longer provided on Ubuntu starting with Lucid. This is why we need to install xulrunner-dev which includes spidermonkey. We point couchdb to the appropriate directory within xulrunner in step 3.

2. Checkout latest couchdb sources from official git repos -

$ git clone http://github.com/apache/couchdb.git

3. Bootstrap, Configure, Make and Install!

$ cd couchdb
$ ./bootstrap
$ ./configure --with-js-lib=/usr/lib/xulrunner-devel-1.9.2.3/lib --with-js-include=/usr/lib/xulrunner-devel-1.9.2.3/include
$ make
$ make install

No comments: