Download and Install rb-dbi on Mac OS X
Thursday the 28th of August, 2008

    rb-dbi  most recent diff


      View the most recent changes for the rb-dbi port at: rb-dbi.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for rb-dbi.
      The raw portfile for rb-dbi is located here:
      http://rb-dbi.darwinports.com/dports/ruby/rb-dbi/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-dbi
      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 {dbi ruby-dbi} 0.1.1 setup.rb {README doc examples} rubyforge:12368:ruby-dbi
      revision 1
      distname ${ruby.module}-${version}
      Maintainers: nomaintainer
      Description: The Ruby port of DBI
      Long Description: A database independent interface for accessing databases, similar to Perl's DBI. Database drivers for it are now available as variants of this package.
      Category:-append databases
      checksums md5 1077f898080bb0af1098ee4b5b54f8d1
      Platform: darwin

      worksrcdir ${ruby.project}

      # The conjuring with the dbi_conf_args variable to set configure.args is to cope
      # with the fact that setup.rb accepts a single "--with=,,..."
      # argument, with the last one overriding the rest. We must therefore append to
      # the end of the string to get the desired variants, and for niceness we might
      # as well delete the obsoleted "--with" argument.

      set dbi_conf_args --with=dbi
      configure.args-append ${dbi_conf_args}

      Variant: dbd_mysql {
      depends_lib-append port:rb-mysql
      configure.args-delete ${dbi_conf_args}
      append dbi_conf_args ,dbd_mysql
      configure.args-append ${dbi_conf_args}
      }

      Variant: dbd_odbc {
      depends_lib-append port:rb-odbc
      configure.args-delete ${dbi_conf_args}
      append dbi_conf_args ,dbd_odbc
      configure.args-append ${dbi_conf_args}
      }

      Variant: dbd_pg {
      depends_lib-append port:rb-postgres
      configure.args-delete ${dbi_conf_args}
      append dbi_conf_args ,dbd_pg
      configure.args-append ${dbi_conf_args}
      }

      # dbd_proxy depends only on the fragment of the distributed Ruby library that is
      # part of the standard Ruby library as of version 1.8
      Variant: dbd_proxy {
      configure.args-delete ${dbi_conf_args}
      append dbi_conf_args ,dbd_proxy
      configure.args-append ${dbi_conf_args}
      }

    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-dbi
      % sudo port install rb-dbi
      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-dbi
      ---> Verifying checksum for rb-dbi
      ---> Extracting rb-dbi
      ---> Configuring rb-dbi
      ---> Building rb-dbi with target all
      ---> Staging rb-dbi into destroot
      ---> Installing rb-dbi
    - 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-dbi with these commands:
      %  man rb-dbi
      % apropos rb-dbi
      % which rb-dbi
      % locate rb-dbi

     Where to find more information:

    Darwin Ports



    image test