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 on OSX" by BenoitC
Date Mon, 31 Aug 2009 08:30:41 GMT
Dear Wiki user,

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

The following page has been changed by BenoitC:
http://wiki.apache.org/couchdb/Installing_on_OSX

------------------------------------------------------------------------------
  == Unofficial Binary Packages ==
  If you just want to give CouchDB a shot and don't like the command line based installation,
you can get this unofficial binary release for MacOS X 10.5 Leopard and Intel Macs only: http://janl.github.com/couchdbx/
  
+ == Installing from source on MacOS X 10.5 Snow Leopard ==
+ 
+ Here is a recipe to install CouchDB from source on MacOS X 10.5 Snow Leopard with needed
dependancies.
+ 
+ 1. Install icu :
+ 
+ {{{
+ $ curl -O http://download.icu-project.org/files/icu4c/4.2.1/icu4c-4_2_1-src.tgz
+ $ tar xvzf icu4c-4_2_1-src.tgz
+ $ cd icu/src
+ $ ./runConfigureICU MacOSX --with-library-bits=64 --disable-samples --enable-static
+ $ make
+ $ make install
+ }}}
+ 
+ 2) Install SpiderMonkey
+ 
+ We need [jsprf patch](http://svn.macports.org/repository/macports/trunk/dports/lang/spidermonkey/files/patch-jsprf.c]
from the macports project to install spidermonkey. 
+ 
+ 
+ 
+ {{{
+ $ curl -O http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
+ $ curl -O http://svn.macports.org/repository/macports/trunk/dports/lang/spidermonkey/files/patch-jsprf.c
+ $ tar xvzf js-1.7.0.tar.gz
+ $ cd js/src
+ $ patch -p0 -i ../../patch-jsprf.c
+ $ make -f Makefile.ref
+ $ sudo su
+ $ JS_DIST=/usr/local/spidermonkey make -f Makefile.ref export
+ $ exit
+ $ sudo ranlib /usr/local/spidermonkey/lib/libjs.a
+ }}}
+ 
+ add to your .profile this line :
+ {{{
+ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/spidermonkey/lib
+ }}}
+ 
+ then reload your env :
+ 
+ {{{
+ $ . ~/.profile
+ }}}
+ 
+ 3) Install Erlang R13B01
+ 
+ {{{
+ $ curl -O http://erlang.org/download/otp_src_R13B01.tar.gz
+ $ tar xvzf otp_src_R13B01.tar.gz
+ $ cd otp_src_R13B01/
+ $ ./configure --enable-smp-support --enable-dynamic-ssl-lib --enable-kernel-poll --enable-darwin-64bit
+ $ make
+ $ make install
+ 
+ }}}
+ 
+ 4) Finally, install CouchDB:
+ 
+ We will install it from the trunk, but installation from released source should work
+ 
+ {{{
+ $ svn co http://svn.apache.org/repos/asf/couchdb/trunk couchdb
+ $ cd couchdb
+ $ ./bootstrap && ./configure --with-js-include=/usr/local/spidermonkey/include --with-js-lib=/usr/local/spidermonkey/lib
+ $ make
+ }}}
+ 
+ If you want to install run `make install` . For developement use do :
+ 
+ {{{
+ $ make dev
+ $ ./utils/run
+ }}}
+ 

Mime
View raw message