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 2009/08/31 10:30:41 UTC
[Couchdb Wiki] Update of "Installing on OSX" by BenoitC
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
+ }}}
+