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 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.
http://wiki.apache.org/couchdb/Installing_on_OSX?action=diff&rev1=29&rev2=30

--------------------------------------------------

   * 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:
http://janl.github.com/couchdbx/
   * Nightly build of CouchDB for OS X: http://couch.lstoll.net/nightly/
  
+ == 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
/usr/local/var/log/couchdb
+ sudo chmod -R 770 /usr/local/etc/couchdb /usr/local/var/lib/couchdb /usr/local/var/run/couchdb
/usr/local/var/log/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 [[https://github.com/mxcl/homebrew#readme|HomeBrew]] instead.
If you really wish to stay with MacPorts, to install CouchDB using MacPorts you have 2 package
choices:
  
   * couchdb - currently at 0.11 which does not run without being patched due to [[https://issues.apache.org/jira/browse/COUCHDB-805|COUCHDB-805]]
caused by dependencies in upgraded erlang R14
   * couchdb-devel - follows [[http://svn.apache.org/repos/asf/couchdb/trunk|trunk]] &
includes fix for the above issue

Mime
View raw message