last updated at April 1, 2021
This page describes examples of how to install Dennou Tools in macOS.
DCL/C-DCL and their dependent libraries are installed by using MacPorts. Ruby is installed from rbenv and Ruby libraries are installed from RubyGems.
Do not install both Homebrew and MacPorts in the same system.
Some unexpected conflicts and errors may occur if both are installed together.
If you have any troubles or questions, contact Hiroki Kashimura <hiroki _(at)_ gfd-dennou.org>.
$ xcode-select --installto install the Xcode command line tools.
$ sudo xcodebuild -licenseto agree the license of Xcode.
$ sudo port selfupdate
$ mkdir -p ~/MacPorts/DCL7 $ cd ~/MacPorts/DCL7 $ curl -O http://www.gfd-dennou.org/library/ruby/products/macos/macports/DCL7/Portfile $ sudo port install
$ mkdir -p ~/MacPorts/C-DCL7 $ cd ~/MacPorts/C-DCL7 $ curl -O http://www.gfd-dennou.org/library/ruby/products/macos/macports/C-DCL7/Portfile $ sudo port install
$ sudo port install fftw-3 gsl netcdf
$ sudo port install rbenv ruby-build
$ export CC=gcc-mp-9 $ rbenv install 2.6.6 $ rbenv global 2.6.6 $ rbenv versions
export PATH="$HOME/.rbenv:$PATH" eval "$(rbenv init - bash)"
$ ruby --version
$ gem install ruby-dcl $ gem install ruby-fftw3 -- --with-fftw3-dir=/opt/local/ $ gem install gphys
$ rbenv rehash
hiroki (at) gfd-dennou.org
This document was translated from LATEX by HEVEA.