couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "Installing_on_OSX" by DaveCottlehuber
Date Thu, 17 Mar 2011 03:26:27 GMT
Dear Wiki user,

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

The "Installing_on_OSX" page has been changed by DaveCottlehuber.
The comment on this change is: use homebrew instead of mac ports, how to set permissions and
set up daemon correctly if reqd.


   * 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 Mac OS X 10.5 Leopard and Intel Macs only:
   * Nightly build of CouchDB for OS X:
+ == HomeBrew ==
+ This is the fastest, most current, way of installing CouchDB from source on a Mac, along
with all dependencies. It tracks releases with only a few days delay.
+ {{{
+ $ brew install couchdb
+ }}}
+ If you wish to have CouchDB run as a daemon then, set up the account, using the user accounts
preference pane
+  * create a standard user {{{ couchdb }}} with home directory {{{ /usr/local/var/lib/couchdb
+  * create a group called {{{ couchdb }}} and add yourself, the couchdb user, and any others
you want to be able to edit config or db files directly to it. Use the {{{ advanced }}} group
options to ensure the internal name is also correctly called couchdb.
+ Using a terminal, set permissions as follows:
+ {{{ 
+ sudo chown -R couchdb:couchdb /usr/local/etc/couchdb /usr/local/var/lib/couchdb /usr/local/var/run/couchdb
+ sudo chmod -R 770 /usr/local/etc/couchdb /usr/local/var/lib/couchdb /usr/local/var/run/couchdb
+ sudo cp /usr/local/Cellar/couchdb/1.0.2/Library/LaunchDaemons/org.apache.couchdb.plist /Library/LaunchDaemons/
+ }}}
+ Finally, you can start/stop CouchDB daemon using these terminal aliases:
+ {{{
+ restart_couch='/usr/bin/sudo launchctl stop org.apache.couchdb'
+ start_couch='/usr/bin/sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist'
+ stop_couch='/usr/bin/sudo launchctl unload /Library/LaunchDaemons/org.apache.couchdb.plist'
+ }}}
  == MacPorts ==
- To install CouchDB using MacPorts you have 2 package choices:
+ You should consider moving to [[|HomeBrew]] instead.
If you really wish to stay with MacPorts, to install CouchDB using MacPorts you have 2 package
   * couchdb - currently at 0.11 which does not run without being patched due to [[|COUCHDB-805]]
caused by dependencies in upgraded erlang R14
   * couchdb-devel - follows [[|trunk]] &
includes fix for the above issue

View raw message