Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get CouchDB 1.1.0 going on my Ubuntu 11.10 laptop. So far I was unable to find a binary package and even so all dependencies and dev headers are installed, I'm unable to compile it.

The configuration ends with this error message.

checking for JS_NewContext in -lmozjs... no
checking for JS_NewContext in -ljs... no
checking for JS_NewContext in -ljs3250... no
checking for JS_NewContext in -ljs32... no
configure: error: Could not find the js library.

Is the Mozilla SpiderMonkey library installed?

I was however able to install the source on a Debian 6.0.3 box without issues. I think it has something to do with the different SpiderMonkey packages between those two platforms.

The current trunk checked out from github compiled fine, yet I'd like to use the latest stable version (1.1.0) rather than the development version.

Any thoughts on what I might do wrong? Is there perhaps a binary package ready for installation somewhere?

share|improve this question

Well, I just missed CouchDB 1.1.1 The problem was buried within an incompatibility with SpiderMonkey 1.8.5. The release notes make that clear. The new version compiles just fine :)

share|improve this answer

This is the easiest way to install the latest couch on any environment:

share|improve this answer

Run the following commands in a terminal:

sudo add-apt-repository ppa:randall-leeds/couchdb
sudo apt-get update 
sudo apt-get install couchdb
share|improve this answer

Install spidermonkey, choose install from source :

continue with the installation :

Easiest: using build-couchdb

Build CouchDB is a wrapper or master project which pulls in, from official sources, CouchDB plus all of its dependencies. It is the most straightforward and reliable procedure to build official CouchDB releases from source.

P.S there is a error on ubuntu package ....

sudo apt-get install make gcc zlib1g-dev libssl-dev libreadline5 rake
share|improve this answer
On 11.10 it seems to be called "libmozjs185-dev". Its installed, yet doesnt't work. – please delete me Oct 31 '11 at 14:32
hm, nice script. I'll add it to my "cool" couchDB linklist. Thanks :) – please delete me Nov 1 '11 at 17:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.