cloudant/bigcouch — Issue #88: Couldn't build on clean Ubuntu 11.10
Author: cdwiegand
Created: 2011-12-13 20:59:15+00:00
State: open

Couldn't build with a clean install of Ubuntu 11.10, with following added packages to the base: python erlang gcc make libmozjs185-dev libcurl3 libicu44 libicu-dev libcurl4-openssl-dev g++ libnspr4-0d

Had to patch the SConscript file to include a couple more dependencies in the right order. Wanted to send this up in case this was useful for anyone else.

diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript
index 451c03d..e310807 100644
--- a/couchjs/c_src/SConscript
+++ b/couchjs/c_src/SConscript
@@ -53,7 +53,6 @@ if not env.GetOption('clean'):
require_lib('m')
require_lib('pthread')
require_lib('curl')
- require_lib('nspr4')

## check for SpiderMonkey development header
if conf.CheckHeader('mozjs/jsapi.h'):
@@ -75,6 +74,11 @@ if not env.GetOption('clean'):
'Is Mozilla SpiderMonkey installed?'
Exit(1)

+ require_lib('pthread')
+ require_lib('plds4')
+ require_lib('plc4')
+ require_lib('nspr4')
+ ## Must be AFTER the SpiderMonkey library checks for me
+
## Detect the version of SpiderMonkey we're using
jsheader = "#include <%s>" % jsapi
versions = [