{"issue":{"title":"Couldn't build on clean Ubuntu 11.10","user":{"login":"cdwiegand","id":121301,"url":"https://api.github.com/users/cdwiegand","gravatar_id":"af0d561235ad5a2af953456aa8633b62","avatar_url":"https://secure.gravatar.com/avatar/af0d561235ad5a2af953456aa8633b62?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-13T20:59:15Z","milestone":null,"labels":[],"state":"closed","updated_at":"2011-12-27T23:05:29Z","id":2543302,"closed_at":"2011-12-27T23:05:29Z","html_url":"https://github.com/cloudant/bigcouch/issues/88","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"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\r\n\r\nHad 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.\r\n\r\ndiff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript\r\nindex 451c03d..e310807 100644\r\n--- a/couchjs/c_src/SConscript\r\n+++ b/couchjs/c_src/SConscript\r\n@@ -53,7 +53,6 @@ if not env.GetOption('clean'):\r\n     require_lib('m')\r\n     require_lib('pthread')\r\n     require_lib('curl')\r\n-    require_lib('nspr4')\r\n\r\n     ## check for SpiderMonkey development header\r\n     if conf.CheckHeader('mozjs/jsapi.h'):\r\n@@ -75,6 +74,11 @@ if not env.GetOption('clean'):\r\n                     'Is Mozilla SpiderMonkey installed?'\r\n                 Exit(1)\r\n\r\n+    require_lib('pthread')\r\n+    require_lib('plds4')\r\n+    require_lib('plc4')\r\n+    require_lib('nspr4')\r\n+   ## Must be AFTER the SpiderMonkey library checks for me\r\n+\r\n     ## Detect the version of SpiderMonkey we're using\r\n     jsheader = \"#include <%s>\" % jsapi\r\n     versions = [\r\n","number":88,"url":"https://api.github.com/repos/cloudant/bigcouch/issues/88","comments":1,"assignee":null},"action":"closed"}