last updated at March 27, 2015

Dennou Tools for Mac OSX

This page explains how to install Dennou (Ruby) Tools in Mac OSX using MacPorts and RubyGems by following steps:

  1. Install Non-Ruby Dennou Tools by MacPorts
  2. Install ports need for Dennou Ruby tools
  3. Install Dennou Ruby tools via RubyGems

Installing Non-Ruby Dennou Tools by MacPorts

1. Install MacPorts in your Mac.

2. Make a directory under your $HOME and check out the MacPorts-JP’s ports tree from its SVN repository.

$ mkdir ~/Sources
$ cd ~/Sources
$ svn checkout macports-jp-trunk

3. Edit “/opt/local/etc/macports/source.conf” as below. (add 4th line)

#  NOTE: The port command parses source URLs in order and installs the                                   
#        first occurrance when a port appears in multiple repositories.                                  
#        So keep "file://" URLs above other URL types.                                                   
file:///Users/Your User Name/Sources/macports-jp-trunk/dports

#  To get the ports tree from the master MacPorts server in California, USA use:                         
#      rsync://                                                         
#  To get it from the mirror in Trondheim, Norway use:                                                   
#      rsync://                                                  
#  A current list of mirrors is available at
rsync:// [default]

4. Execute

$ sudo port -d sync

5. Now, you can install Dennou Tools (C-DCL for example) by

$ sudo port install C-DCL6

Note that, most Dennou Tools depend on some large libraries (e.g., gtk2) which may take long time to compile and install.

Ports names of Dennou Tools

Ports name Software name

Install ports need for Dennou Ruby tools

You need the following libraries, which are used in Dennou Ruby tools.

You can install them by MacPorts as follows.

$ sudo port install ruby22 fftw-3 gsl netcdf

*Use ruby22 or ruby21 or ruby20.

Install Dennou Ruby tools via RubyGems

Then, you can install Dennou Ruby tools by gem command as follows.

$ sudo gem2.2 install gphys

*Use gem2.1 or gem2.0 if you installed ruby21 or ruby20, respectively.

Now you finished installation of GPhys, which is a powerful Ruby library.

Ports for Ruby1.8, 1.9

Note that Ruby 1.8 and 1.9 is now officially unsupported and unrecommended to use.

rb(19)-gphys Gphys
rb(19)-narray_miss NArrayMiss
rb(19)-numru-misc NumRu/Misc
rb(19)-numru-units NumRu/Units
rb(19)-dcl Ruby/DCL
rb(19)-netcdf Ruby/NetCDF



Hiroki Kashimura
hirokimac (at)

This document was translated from LATEX by HEVEA.