Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 40740 invoked from network); 25 Jan 2010 14:35:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2010 14:35:28 -0000 Received: (qmail 63420 invoked by uid 500); 25 Jan 2010 14:35:26 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 62911 invoked by uid 500); 25 Jan 2010 14:35:25 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 62777 invoked by uid 500); 25 Jan 2010 14:35:25 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 62755 invoked by uid 99); 25 Jan 2010 14:35:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2010 14:35:25 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jan 2010 14:35:15 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 97D1B17620; Mon, 25 Jan 2010 14:34:55 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 25 Jan 2010 14:34:55 -0000 Message-ID: <20100125143455.12200.78972@eos.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Update_of_=22Installing=5Fon=5FOSX=22_by_Jos?= =?utf-8?q?chaFeth?= Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "Installing_on_OSX" page has been changed by JoschaFeth. http://wiki.apache.org/couchdb/Installing_on_OSX?action=3Ddiff&rev1=3D22&re= v2=3D23 -------------------------------------------------- =3D=3D Unofficial Binary Packages =3D=3D - If you just want to give CouchDB a shot and don't like the command line b= ased installation, you can get this unofficial binary release for Mac OS X = 10.5 Leopard and Intel Macs only: http://janl.github.com/couchdbx/ + * If you just want to give CouchDB a shot and don't like the command lin= e based installation, you can get this unofficial binary release for Mac OS= X 10.5 Leopard and Intel Macs only: http://janl.github.com/couchdbx/ + * Nightly build of CouchDB for OS X: http://couch.lstoll.net/nightly/ = =3D=3D MacPorts =3D=3D - To install CouchDB using Mac``Ports + To install CouchDB using MacPorts = {{{ $ sudo port install couchdb }}} + should be enough. MacPorts takes care of installing all necessary depende= ncies. If you have already installed some of the CouchDB dependencies via M= acPorts, run this command to check and upgrade any outdated ones, ''after i= nstalling CouchDB'': - = - should be enough. Mac``Ports takes care of installing all necessary depen= dencies. If you have - already installed some of the CouchDB dependencies via Mac``Ports, run th= is command to check and - upgrade any outdated ones, ''after installing CouchDB'': = {{{ $ sudo port upgrade couchdb }}} + This will upgrade dependencies recursively, if there are more recent vers= ions available. If you want to run CouchDB as a service controlled by the O= S, load the launchd configuration which comes with the project, with this c= ommand: - = - This will upgrade dependencies recursively, if there are more recent vers= ions available. If you want to - run CouchDB as a service controlled by the OS, load the launchd configura= tion which comes with the project, - with this command: = {{{ $ sudo launchctl load -w /opt/local/Library/LaunchDaemons/org.apache.couc= hdb.plist }}} - = - and it should be up and accessible via http://127.0.0.1:5984/_utils/index= .html. It should also be restarted + and it should be up and accessible via http://127.0.0.1:5984/_utils/index= .html. It should also be restarted automatically after reboot (because of t= he -w flag). - automatically after reboot (because of the -w flag). = If not, be sure to check permissions on couchdb files and repair them if = neccessary: = {{{ $ sudo chown -R couchdb:couchdb /opt/local/var/lib/couchdb/ /opt/local/va= r/log/couchdb/ }}} - = - Updating the ports collection. The collection of port files has to be upd= ated to reflect the latest + Updating the ports collection. The collection of port files has to be upd= ated to reflect the latest versions of available packages. In order to do t= hat run: - versions of available packages. In order to do that run: = {{{ $ sudo port selfupdate }}} - = to update the port tree, and then install just as explained. = =3D=3D Dependencies - Erlang =3D=3D If Erlang fails to build with the error: + = {{{ Command output: megaco_flex_scanner_drv.flex:31: unknown error processing= section 1 }}} You will need to upgrade flex: http://bugs.debian.org/cgi-bin/bugreport.c= gi?bug=3D465039 = =3D=3D Typical build process of a CouchDB developer build =3D=3D - = {{{ $ svn co http://svn.apache.org/repos/asf/couchdb/trunk couchdb $ cd couchdb @@ -60, +50 @@ $ make $ sudo make install }}} - = - = =3D=3D Installing from source on Mac OS X 10.6 Snow Leopard =3D=3D - = Here is a recipe to install CouchDB from source on Mac OS X 10.6 Snow Leo= pard with needed dependencies. = 1. Install ICU @@ -76, +63 @@ $ make $ sudo make install }}} - = 2. Install SpiderMonkey = - We need [[http://svn.macports.org/repository/macports/trunk/dports/lang/s= pidermonkey/files/patch-jsprf.c|jsprf patch ]] from the MacPorts project to= install SpiderMonkey. = + We need [[http://svn.macports.org/repository/macports/trunk/dports/lang/s= pidermonkey/files/patch-jsprf.c|jsprf patch]] from the MacPorts project to = install SpiderMonkey. = {{{ $ curl -O http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz @@ -93, +79 @@ $ exit $ sudo ranlib /usr/local/spidermonkey/lib/libjs.a }}} - = '''NOTE:''' You may receive the following warning. You should be safe to = ignore it and proceed with the instructions. = {{{ ranlib: file: /usr/local/spidermonkey/lib/libjs.a(jslock.o) has no symbols }}} + =3D=3D=3D=3D Using DYLD_LIBRARY_PATH =3D=3D=3D=3D + add to your .profile this line : = - =3D=3D=3D=3D Using DYLD_LIBRARY_PATH =3D=3D=3D=3D - = - add to your .profile this line : {{{ export DYLD_LIBRARY_PATH=3D$DYLD_LIBRARY_PATH:/usr/local/spidermonkey/lib }}} - = then reload your env : = {{{ $ . ~/.profile }}} - = =3D=3D=3D=3D Avoding DYLD_LIBRARY_PATH =3D=3D=3D=3D - = Not using DYLD_LIBRARY_PATH means that you don't need to worry about sett= ing the environment for other users (ie, the couchdb user or root). Also, i= t avoids the need to tell the CouchDB ./configure script where to find spid= ermonkey. = {{{ @@ -123, +104 @@ # If you're feeling saucey, the js shell can be useful for quick syntax c= hecking and the like. $ sudo ln -s /usr/local/spidermonkey/bin/js /usr/local/bin/js }}} - = 3. Install Erlang R13B01 = {{{ @@ -133, +113 @@ $ ./configure --enable-smp-support --enable-dynamic-ssl-lib --enable-kern= el-poll --enable-darwin-64bit $ make $ sudo make install - = }}} - = 4. Building CouchDB: = We will install it from the trunk, but installation from released source = should work @@ -146, +124 @@ $ ./bootstrap && ./configure --with-js-include=3D/usr/local/spidermonkey/= include --with-js-lib=3D/usr/local/spidermonkey/lib $ make }}} - = =3D=3D=3D=3D NOTE =3D=3D=3D=3D - = If you avoided using DYLD_LIBRARY_PATH when installing spidermonkey, you = won't need to use the --with-js-[include|lib] flags. = 5. Running