Rb-cgen - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    rb-cgen  most recent diff


    version

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


      The rb-cgen Portfile 38282 2008-07-14 20:39:24Z febeling macports.org $
      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup cgen 0.14 install.rb {README examples test}
      Maintainers: nomaintainer
      Description: Framework for generating C extensions from Ruby.
      Long Description: If you're starting a C extension from scratch, or if you need to dynamically generate and load C code on the fly, you may be interested. For wrapping an existing library, you should consider SWIG as well. SWIG has the advantage of being able to parse headers and generate something as a starting point. CGenerator has the advantage of automatically handling serialization and memory management, but it can handle only a limited (but extensible) range of C data types.
      Checksums: md5 0b18ec141ae5beb5d6d839585f7b701d
      Homepage: http://redshift.sourceforge.net/${ruby.module}/
      Master Sites: http://redshift.sourceforge.net/${ruby.module}-${version}/
      Platform: darwin
      extract.suffix .tgz

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.