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 2008/10/21 23:29:45 UTC

[Couchdb Wiki] Update of "InstallingOnOSX" by FlorianEbeling

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 FlorianEbeling:
http://wiki.apache.org/couchdb/InstallingOnOSX

The comment on the change is:
update macports install procedure

------------------------------------------------------------------------------
+ To install CouchDB using Mac``Ports
- If you experience a Bus Error when compiling CouchDB on OSX 10.5.3, it's likely due to incompatibility between the OS and Mac Port's Erlang. Luckily, fixing the problem is as simple as removing one line from the Portfile, and rebuilding Erlang.
- 
- == Dependencies ==
- 
- Ensure that all dependencies are in place - assuming you are using macports then a
  
  {{{
- $ sudo port install gmake autoconf tcl erlang spidermonkey icu
+ $ sudo port install couchdb +server
  }}}
  
- should be enough.
+ should be enough. Mac``Ports takes care of installing all necessary dependencies. If you have
+ already installed some of the CouchDB dependencies via Mac``Ports, run this 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 versions available. If you want to
+ run CouchDB as a service controlled by the OS, load the launchd configuration which comes with the project,
+ with this command:
+ 
+ {{{
+ $ sudo launchctl load -w /opt/local/Library/LaunchDaemons/org.apache.couchdb.plist
+ }}}
+ 
+ and it should be up and accessible via http://127.0.0.1:5984/_utils/index.html. (Don't use the plist file
+ Mac``Ports mentions in output, located at {{{/Library/LaunchDaemons/org.macports.CouchDB.plist}}}, it does not work.)
  
  == Dependencies - Erlang ==
+ If you experience a Bus Error when compiling CouchDB on OSX 10.5.3, it's likely due to incompatibility between the Mac OS Leopard and Erlang HiPE. Luckily, fixing the problem is as simple rebuilding Erlang with the most recent port file. Run:
+ 
+ {{{
+ $ sudo port selfupdfate
+ }}}
+ 
+ to update the port tree, and then install just as explained.
+ 
  Here's [http://trac.macports.org/ticket/15459 the bug report on the Mac Ports website.]
  
- If you have a previous install of Erlang you should run 
+ If you have a previous install of Erlang you should run
  
  {{{
- port uninstall erlang
+ $ port uninstall erlang
  }}}
- 
- before running
- 
- {{{
- port install erlang -hipe
- }}}
- 
- The "-hipe" flag instructs port to not install the default variant hipe.
  
  If Erlang fails to build with the error:
  {{{
@@ -35, +48 @@

  }}}
  You will need to upgrade flex: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465039
  
- == Typical build process of a developer build ==
+ == Typical build process of a CouchDB developer build ==
  
  {{{
  $ svn checkout http://svn.apache.org/repos/asf/incubator/couchdb/trunk couchdb