Yak Shaving

just me

Compiling Couchdb on Karmic

without comments

This had my annoyed for a while. When I came to run ./configure I got:

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 unable to find much help until I looked at the instructions for installing from source http://wiki.apache.org/couchdb/Installing_on_Ubuntu?action=show&redirect=InstallingOnUbuntu. Which in retrospect would have been a good place to start. Use the following to stop the above error:

./configure --with-js-include=/usr/include/xulrunner-1.9.1.9/unstable --with-js-lib=/usr/lib/xulrunner-devel-1.9.1.9/lib

Oh and make sure you have xulrunner and its dev package installed.

Written by channam

May 5th, 2010 at 12:40 pm

Posted in Uncategorized

Leave a Reply