Couchdb version 0.9.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    couchdb  most recent diff


    version 0.9.1

      View the most recent changes for the couchdb port at: couchdb.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for couchdb.
      The raw portfile for couchdb 0.9.1 is located here:
      http://couchdb.darwinports.com/dports/databases/couchdb/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/couchdb


      The couchdb Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: couchdb
      Version: 0.9.1

      Category: databases
      Platform: darwin

      Description: CouchDB is a document database server
      Maintainers: jwa febeling
      Long Description: ${description} with a restful HTTP API, capable of storing arbitrary JSON documents, building powerful data views, defined in JavaScript, and processed in parallel using Map/Reduce. It leaves out SQL and transactions for simplicity's sake, to improve scalability and to relax users' lives.

      Homepage: http://couchdb.apache.org/
      Master Sites: apache
      Master Sites:.mirror_subdir ${name}/${version}/
      distname apache-${name}-${version}
      Checksums: sha1 3afb5f7c65fe86a622546796a737e02a9bff9b09

      depends_lib port:automake port:autoconf port:libtool port:help2man port:icu port:spidermonkey port:erlang

      set dbgroup couchdb
      set dbuser couchdb
      set logdir ${prefix}/var/log/couchdb
      set dbdir ${prefix}/var/lib/couchdb
      set plistdir /Library/LaunchDaemons

      post-destroot {
      addgroup ${dbgroup}
      adduser ${dbuser} gid=[existsgroup ${dbgroup}]
      xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${plistdir}
      destroot.keepdirs-append ${destroot}${dbdir} ${destroot}${logdir}
      set plist org.apache.couchdb.plist
      system "cd ${destroot}/Library/LaunchDaemons && ln -sf ${prefix}/Library/LaunchDaemons/${plist}"
      }

      post-activate {
      ui_msg "########################################################################"
      ui_msg "# Changes in CouchDB 0.9 make 0.8.1 database files incompatible."
      ui_msg "# See http://wiki.apache.org/couchdb/BreakingChanges for details"
      ui_msg "#"
      ui_msg "# Run the following command to install the CouchDB launchd"
      ui_msg "# startup item in order to start and re-start service automatically:"
      ui_msg "#"
      ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist"
      ui_msg "########################################################################"
      }

      livecheck.type regex
      livecheck.url http://couchdb.apache.org/downloads.html
      livecheck.regex apache-${name}-(0.\[0-9\].\[0-9\])

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/couchdb
      % sudo port install couchdb
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching couchdb
      ---> Verifying checksum for couchdb
      ---> Extracting couchdb
      ---> Configuring couchdb
      ---> Building couchdb with target all
      ---> Staging couchdb into destroot
      ---> Installing couchdb
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using couchdb with these commands:
      %  man couchdb
      % apropos couchdb
      % which couchdb
      % locate couchdb

     Where to find more information:

    Darwin Ports



    Lightbox this page.