Download and Install couchdb version 0.8.1 on Mac OS X
Friday the 21st of November, 2008

    couchdb  most recent diff


    version 0.8.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.8.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
      Google
      Web Darwinports.com



      # $Id: Portfile 39303 2008-08-17 13:17:14Z jwa macports.org $

      PortSystem 1.0

      Name: couchdb
      Version: 0.8.1

      Category: databases
      Platform: darwin

      Description: couchdb is a document database server
      Maintainers: jwa
      Long Description: ${description}

      Homepage: http://incubator.apache.org/couchdb/
      master_sites apache
      master_sites.mirror_subdir incubator/${name}/${version}-incubating/
      distname apache-${name}-${version}-incubating
      checksums md5 89e037b370bef33be93f0f317e07615f sha1 1bbe4776a125577d89ae7b2622f406e59be9d119 rmd160 2928eeb3e3816d5a3ae43b548cde96de289dddd5

      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 piddir ${prefix}/var/run/
      set plistloc ${prefix}/etc/LaunchDaemons/org.macports.CouchDB

      Variant: server description {adds a startup item} {
      addgroup ${dbgroup}
      adduser ${dbuser} gid=[existsgroup ${dbgroup}]

      startupitem.create yes
      startupitem.type launchd
      startupitem.name CouchDB
      # startupitem.start "\$\(${prefix}/bin/icu-config --invoke\) ${prefix}/bin/couchdb -b -o ${logdir}/couchdb.stdout -e ${logdir}/couchdb.stderr"
      startupitem.start "${prefix}/bin/couchdb -b -o ${logdir}/couchdb.stdout -e ${logdir}/couchdb.stderr"
      startupitem.stop "${prefix}/bin/couchdb -d"
      }

      pre-destroot {
      if { [variant_isset server] } {
      xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${piddir}
      destroot.keepdirs-append ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${piddir}
      }
      }

      pre-install {
      if { [variant_isset server] } {
      system "touch ${destroot}${piddir}/couchdb.pid"
      system "chown -R ${dbuser}:${dbgroup} ${destroot}${dbdir} ${destroot}${logdir} ${destroot}${piddir}/couchdb.pid"
      system "cd ${destroot}${plistloc}; patch <${filespath}/patch-org.macports.CouchDB.plist.diff"
      }
      }

      livecheck.check regex
      livecheck.url http://incubator.apache.org/couchdb/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.