couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Installing_SpiderMonkey" by MartinHewitt
Date Tue, 23 Aug 2011 17:18:56 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Installing_SpiderMonkey" page has been changed by MartinHewitt:
http://wiki.apache.org/couchdb/Installing_SpiderMonkey?action=diff&rev1=10&rev2=11

  
  and you should be OK.
  
+ === Installing on Linux for CouchDB versions >= 1.1 ===
+ 
+ Directions adapted from:
+  * https://developer.mozilla.org/En/SpiderMonkey/Build_Documentation
+  * https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites
+ 
+ Process:
+ 
+  1. Add RPMForge repo as detailed above (for mercurial, a prerequisite of SpiderMonkey)
+  1. Install SpiderMonkey prerequisites (copied from above link)
+  {{{
+ yum install \
+   cvs zip gcc-c++ glib2-devel gtk2-devel fontconfig-devel libnotify-devel \
+   libIDL-devel alsa-lib-devel libXt-devel freetype-devel pkgconfig \
+   dbus-glib-devel curl-devel autoconf213 xorg-x11-proto-devel libX11-devel \
+   libXau-devel libXext-devel wireless-tools-devel glibc-static libstdc++-static yasm \
+   mesa-libGL-devel esound-libs esound-devel ccache mercurial
+ }}}
+  1. Download a version of SpiderMonkey >= 1.8.5 (CouchDB's ./configure script looks for
mozjs185 to determine JS library existence)
+  {{{
+ curl -L -O http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
+ }}}
+  1. Unpack SpiderMonkey
+  {{{
+ tar xvf js185-1.0.0.tar.gz
+ 
+ cd js-1.8.5/js/src
+ }}}
+  1. Install. 'make install' is needed to move the final files into position, despite it
being omitted from Mozilla's process
+  {{{
+ autoconf-2.13
+ ./configure
+ make
+ make install
+ }}}
+  1. Use the following ./configure line for CouchDB
+  {{{
+ ./configure --with-erlang=/wherever/your/erlang/install/is --with-js-lib=/usr/local/lib/
--with-js-include=/usr/local/include/js/
+ }}}
+ 
  == Notes when installing on Android ==
  
  Please see the Android-specific "installing from source" instructions.  Since support for
Android was added fairly recently to Spidermonkey and NSPR, the above notes won't be of much
help to you.

Mime
View raw message