3

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?

0

4 Answers 4

3

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 :)

1

This is the easiest way to install the latest couch on any environment: https://github.com/iriscouch/build-couchdb

1

Run the following commands in a terminal:

sudo add-apt-repository ppa:randall-leeds/couchdb
sudo apt-get update 
sudo apt-get install couchdb
0

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
2
  • On 11.10 it seems to be called "libmozjs185-dev". Its installed, yet doesnt't work. Oct 31, 2011 at 14:32
  • hm, nice script. I'll add it to my "cool" couchDB linklist. Thanks :) Nov 1, 2011 at 17:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .