Download and Install rb-bdb on Mac OS X
Friday the 25th of July, 2008

    rb-bdb  most recent diff


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



      # $Id: Portfile 28620 2007-09-05 09:07:23Z ryandesign macports.org $
      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup bdb 0.5.8 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 b0c9eb2f4a8456bb71afad353161199c
      Platform: darwin

      depends_lib-append port:db44

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

      Variant: db3 {
      depends_lib-delete port:db44
      depends_lib-append port:db3
      configure.args-delete --with-db-lib=${prefix}/lib/db44 --with-db-include=${prefix}/include/db4
      configure.args-append --with-db-dir=${prefix} --with-db-include=${prefix}/include/db3 --with-db-version=3
      }

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

      test.run yes
      #test.target test


    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



    image test