last updated at March 27, 2015
This page explains how to install Dennou (Ruby) Tools in Mac OSX using MacPorts and RubyGems by following steps:
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 http://svn.sourceforge.jp/svnroot/macports-jp/trunk 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://rsync.macports.org/release/ports/ # To get it from the mirror in Trondheim, Norway use: # rsync://trd.no.rsync.macports.org/release/ports/ # A current list of mirrors is available at http://trac.macports.org/wiki/Mirrors rsync://rsync.macports.org/release/ports/ [default]
$ 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 name||Software name|
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.
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.
Note that Ruby 1.8 and 1.9 is now officially unsupported and unrecommended to use.
hirokimac (at) users.sourceforge.jp
This document was translated from LATEX by HEVEA.