Rb-bdb - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    version

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


      The rb-bdb Portfile 57614 2009-09-14 06:21:48Z toby macports.org $

      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup bdb 0.6.5 extconf.rb {README.en bdb.html bdb.rd docs examples}
      Maintainers: nomaintainer
      Description: Ruby interface to the embedded Berkeley DB
      Long Description: Ruby BDB is an interface for using Berkeley DB versions 2 and above. Developers may choose to store data in any of several different storage structures to satisfy the requirements of a particular application. The library includes support for B+tree, Hashes, and Fixed and Variable-Length Records.
      Category:-append databases
      Homepage: http://moulon.inra.fr/ruby/${ruby.module}.html
      Master Sites: ftp://moulon.inra.fr/pub/ruby/
      Checksums: md5 a6b1b04eede935f1de5327e365e350fa sha1 9a9151801d2a02feb0bba866762634bec860e724
      Platform: darwin

      depends_lib-append port:db46

      configure.args-append --with-db-lib=${prefix}/lib/db46 --with-db-include=${prefix}/include/db46

      pre-configure {
      # The trailing space is not a typo
      reinplace "s|extconf.rb |-rvendor-specific & |" ${worksrcpath}/extconf.rb
      }

      test.run yes
      #test.target test

      livecheck.type regex
      livecheck.url http://raa.ruby-lang.org/project/bdb
      livecheck.regex {bdb / ([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/rb-bdb
      % sudo port install rb-bdb
      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 rb-bdb
      ---> Verifying checksum for rb-bdb
      ---> Extracting rb-bdb
      ---> Configuring rb-bdb
      ---> Building rb-bdb with target all
      ---> Staging rb-bdb into destroot
      ---> Installing rb-bdb
    - 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 rb-bdb with these commands:
      %  man rb-bdb
      % apropos rb-bdb
      % which rb-bdb
      % locate rb-bdb

     Where to find more information:

    Darwin Ports



    Lightbox this page.