KAISER2016 への gtool5 のインストール

gtool

download

$ curl http://www.gfd-dennou.org/library/gtool/gtool5/gtool5-20101228-1.tgz -O

extract

$ tar xvf gtool5-20101228-1.tgz
$ cd gtool5-20101228-1

edit configure

l.2121 (ただし, 以下の "\" は不要)

\*.so)

--->

\*.dylib

l.2122

.so

--->

.dylib

configure

$ export FC=gfortran
$ export FFLAGS=
$ ./configure \
--with-netcdf=/opt/local/lib/libnetcdf.dylib \
--prefix=/home1/cz500013/local

compile

$ make

install

$ make install

<dir> is, for example, /usr/local/lib or something like that.

test

$ make test-installed

エラー山ほど.

どうやら netcdf-fortran が入っていないらしい. KAISER2016 ブートイメージにはとりあえず MacPorts で入れてもらおう.

MEMO: error (solved?)

configure: error: specified library file "/opt/local/lib/libnetcdf.dylib" have invalid suffix. Valid suffixes are ".a" or ".so"