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, 05 Apr 2012 08:17:48 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:
http://wiki.apache.org/couchdb/Installing_on_OSX?action=diff&rev1=39&rev2=40

Comment:
update links for 1.1.1 due to changed Apache Mirror layout, and ready for 1.2.0. Tidy up svn
links.

  
  Note: if you are using XCode 4.3 or newer, or the command-line only build tools, you may
need to install additional GNU automake tools before brewing CouchBB. For users that have
not upgraded, these tools are already present and could break other brew recipes, so these
dependencies are not included in the CouchDB recipe.
  
+ === If you've brewed CouchDB before ===
- {{{
- $ brew install autoconf automake libtool
- }}}
  
- Then:
+ It is recommended to keep your homebrew dependencies up to date with CouchDB, particularly
if you are running Lion. Re-installing Erlang *will* take some time to compile, but ensures
you have the most stable Erlang available.
  
  {{{
+ $ brew remove --force openssl erlang couchdb icu4c spidermonkey nspr
+ }}}
+ 
+ === Let's get brewing! ===
+ 
+  * Update your recipes:
+ 
+ {{{
+ $ brew update
+ }}}
+ 
+  *  Ensure we build against the new keg-only versions
+ {{{
+ brew install icu4c openssl
+ brew link icu4c openssl
+ brew install erlang --no-docs
+ }}}
+ 
+  * Build and install CouchDB.
+ 
+ {{{
- $ brew install couchdb
+ brew install couchdb
  }}}
  
- If you're hacking on CouchDB, and we hope you will, you may try the current git-based development
branch using this couchdb recipe, https://gist.github.com/2083174, and then:
+  * If you're hacking on CouchDB, and we hope you will, you may try the current git-based
master (head) branch, or the next development release using this couchdb recipe, using either
{{{--head}}} or {{{--devel}}} options respectively. This will allow quick installation of
the future 1.3.x branch when it becomes active. If you're not sure if you need this, then
you probably don't. In both cases we assume you are comfortable identifying bugs, and handling
any potential upgrades between commits to the codebase.
+ 
  {{{
- $ brew install --devel couchdb
+ brew install [--devel|--head] couchdb
  }}}
  
  Note: OS X Lion might hang on the final make. See the thread at https://github.com/mxcl/homebrew/issues/7024
It seems in most cases to be resolved by breaking out with CTRL-C and then repeating with
brew install -v couchdb.
@@ -36, +56 @@

  sudo chown -R couchdb:couchdb $RELAX/etc/couchdb $RELAX/var/lib/couchdb $RELAX/var/run/couchdb
$RELAX/var/log/couchdb
  sudo chmod -R 770 $RELAX/etc/couchdb $RELAX/var/lib/couchdb $RELAX/var/run/couchdb $RELAX/var/log/couchdb
  sudo find -X $RELAX/etc/couchdb $RELAX/var/lib/couchdb $RELAX/var/run/couchdb $RELAX/var/log/couchdb
-type f | xargs chmod 660
- sudo cp $RELAX/Cellar/couchdb/1.1.1/Library/LaunchDaemons/org.apache.couchdb.plist /Library/LaunchDaemons/
+ sudo cp $RELAX/Cellar/couchdb/1.2.0/Library/LaunchDaemons/org.apache.couchdb.plist /Library/LaunchDaemons/
  }}}
  
  Finally, you can start/stop CouchDB daemon using these terminal aliases:
@@ -49, +69 @@

  
  == MacPorts ==
  
- 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:
+ You should consider moving to [[https://github.com/mxcl/homebrew#readme|HomeBrew]] instead.
If you really wish to stay with MacPorts, please refer to the notes below and let us know
if these need to be adapted.
+ 
+ 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
+  * couchdb-devel - follows [[http://git.apache.org/couchdb.git|master]] & includes fix
for the above issue
  
  {{{
  $ sudo port install couchdb
@@ -104, +126 @@

  
  == Typical build process of a CouchDB developer build ==
  {{{
- $ svn co http://svn.apache.org/repos/asf/couchdb/trunk couchdb
- $ cd couchdb
+ $ git clone http://git.apache.org/couchdb.git
+ $ cd couchdb && git checkout <release-tag>
  $ ./bootstrap && ./configure
  $ make
  $ sudo make install
  }}}
+ 
  == Installing from source on Mac OS X 10.6 Snow Leopard ==
  Here is a recipe to install CouchDB from source on Mac OS X 10.6 Snow Leopard with needed
dependencies.
  
@@ -187, +210 @@

  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
+ $ git clone http://git.apache.org/couchdb.git
+ $ cd couchdb && git checkout <release-tag>
  $ ./bootstrap && ./configure --with-js-include=/usr/local/spidermonkey/include --with-js-lib=/usr/local/spidermonkey/lib
  $ make
  }}}

Mime
View raw message