last updated at March 30, 2023
This page describes examples of how to install Dennou Tools in macOS.
DCL’s dependent libraries are installed by using MacPorts and DCL is installed manually.
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
$ sudo port -s install gcc12 $ sudo port install pkgconfig $ sudo port install gtk3 $ curl -O http://www.gfd-dennou.org/library/dcl/dcl-7.5.1.tar.gz $ tar zxvf dcl-7.5.1.tar.gz $ export FC=gfortran-mp-12 (for bash or zsh) $ export CC=gcc-mp-12 (for bash or zsh) $ ./configure --prefix=[directory where you want to install] $ make $ make installThen add the following options in installed "dclconfig"
add "-L/opt/local/lib/gcc12" to ldflags add "-lgfortran" to ldlibs
$ sudo port install fftw-3 gsl netcdf
$ sudo port install rbenv ruby-build
$ export CC=gcc-mp-12 $ export DLDFLAGS "-Wl,-undefined,dynamic_lookup" $ rbenv install 3.1.3 $ rbenv global 3.1.3 $ rbenv versions $ gem install bundler rake rake-compiler
export PATH="$HOME/.rbenv:$PATH" eval "$(rbenv init - zsh)"
$ ruby --version
$ export FC=gfortran-mp-12 $ gem install ruby-dcl $ gem install ruby-fftw3 -- --with-fftw3-dir=/opt/local/ $ gem install gphys
$ rbenv rehash
Hiroki Kashimura
hiroki (at) gfd-dennou.org
This document was translated from LATEX by HEVEA.