Rb-postgres - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    rb-postgres  most recent diff


    version

      View the most recent changes for the rb-postgres port at: rb-postgres.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for rb-postgres.
      The raw portfile for rb-postgres is located here:
      http://rb-postgres.darwinports.com/dports/ruby/rb-postgres/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-postgres


      The rb-postgres Portfile 46891 2009-02-16 22:33:01Z jmr macports.org $

      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup {postgres ruby-postgres} 0.7.1 extconf.rb {README doc sample}
      Revision: 5
      Maintainers: nomaintainer
      Description: Ruby API for the PostgreSQL database
      Long Description: This is the Ruby library for accessing PostgreSQL databases from within Ruby. It works with PostgreSQL 8.0.
      Category:-append databases
      Homepage: http://ruby.scripting.ca/postgres/
      Master Sites: ${homepage}/archive/
      Checksums: md5 8ef67b3f4b089248f0420baeb0e3b3c8
      Platform: darwin

      if {![variant_isset postgresql83] && ![variant_isset postgresql82] &&
      ![variant_isset postgresql81] && ![variant_isset postgresql80]} {
      default_variants +postgresql83
      }

      Variant: postgresql83 conflicts postgresql80 postgresql81 postgresql82 description {Use PostgreSQL version 8.3} {
      depends_lib-append port:postgresql83
      configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql83 --with-pgsql-lib-dir=${prefix}/lib/postgresql83
      configure.env POSTGRES_LIB="${prefix}/lib/postgresql83 -L${prefix}/lib -lssl -lcrypto" POSTGRES_INCLUDE="${prefix}/include/postgresql83 -I${prefix}/include"
      }

      Variant: postgresql82 conflicts postgresql80 postgresql81 postgresql83 description {Use PostgreSQL version 8.2} {
      depends_lib-append port:postgresql82
      configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql82 --with-pgsql-lib-dir=${prefix}/lib/postgresql82
      configure.env POSTGRES_LIB="${prefix}/lib/postgresql82 -L${prefix}/lib -lssl -lcrypto" POSTGRES_INCLUDE="${prefix}/include/postgresql82 -I${prefix}/include"
      }

      Variant: postgresql81 conflicts postgresql80 postgresql82 postgresql83 description {Use PostgreSQL version 8.1} {
      depends_lib-append port:postgresql81
      configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql81 --with-pgsql-lib-dir=${prefix}/lib/postgresql81
      configure.env POSTGRES_LIB="${prefix}/lib/postgresql81 -L${prefix}/lib -lssl -lcrypto" POSTGRES_INCLUDE="${prefix}/include/postgresql81 -I${prefix}/include"
      }

      Variant: postgresql80 conflicts postgresql81 postgresql82 postgresql83 description {Use PostgreSQL version 8.0} {
      depends_lib-append port:postgresql80
      configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql80 --with-pgsql-lib-dir=${prefix}/lib/postgresql80
      configure.env POSTGRES_LIB="${prefix}/lib/postgresql80 -L${prefix}/lib -lssl -lcrypto" POSTGRES_INCLUDE="${prefix}/include/postgresql80 -I${prefix}/include"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.