You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2012/09/13 11:22:52 UTC
[Couchdb Wiki] Update of "Installing_on_Ubuntu" by gonvaled
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Installing_on_Ubuntu" page has been changed by gonvaled:
http://wiki.apache.org/couchdb/Installing_on_Ubuntu?action=diff&rev1=77&rev2=78
Comment:
Added instructions to install spidermonkey from source
This solution is referenced in bug report [[https://bugs.launchpad.net/ubuntu/+source/xulrunner-1.9/+bug/557275|#557275]].
+ ==== Installing spidermonkey from source ====
+
+ This has been tested on Ubuntu 8.04 Server, with couchdb 1.2.0, from source.
+
+ {{{
+ install_spidermonkey_ ( ) {
+ cd /tmp
+ SPIDERMONKEY_VER="js185-1.0.0"
+ SPIDERMONKEY_DIR="js-1.8.5"
+ wget http://ftp.mozilla.org/pub/mozilla.org/js/${SPIDERMONKEY_VER}.tar.gz
+ tar xvzf ${SPIDERMONKEY_VER}.tar.gz
+ cd ${SPIDERMONKEY_DIR}/js/src
+ make distclean 2> /dev/null # Just in case it is dirty
+ ./configure
+ make clean
+ make
+ sudo make install
+ sudo ldconfig # Make sure the new libraries are reachable
+ }
+ install_spidermonkey_
+ }}}
+
+ And then, to build couch:
+ {{{
+ JS_LIB="/usr/local/lib/libmozjs185.so"
+ JS_INCLUDE="/usr/local/include/js"
+ ./configure --with-js-lib=${JS_LIB} --with-js-include=${JS_INCLUDE}
+ }}}
+
+ Note: because the libtools in Ubuntu 8.04 are old, the macro LT_INIT is not supported.
+ To install CouchDB 1.2.0, some hacking must be performed on the configure script:
+
+ {{{
+ sed -i -e 's/^LT_INIT/#LT_INIT/' configure
+ }}}
+
==== System updates ====
When performing system updates (using apt-get or package manager) please keep in mind that the `/etc/ld.so.conf.d/xulrunner.conf` file is not maintained by the system and will not be updated if a new version of xulrunner is deployed!