必要なファイル
http://www.gfd-dennou.org/library/gtool/gtool5/gtool5-20101228-1.tgz ver. 20101228-1
ビルドは, nysa の ~/tmp/gtool 以下で行う.
$ gzip -cd gtool5-20101228-1.tgz | tar -xvf - $ cd gtool5-20101228-1 $ export FC=f90jxflat $ export FCFLAGS="-Am -Umpi -Uomp" $ export SYSFFLAGS="-Am -Umpi -Uomp" $ ./configure \ --prefix=/home/t/t583/local/gtool5-20101228-1 \ --with-netcdf=/home/t/t583/local/netcdf-3.6.3/lib/libnetcdf.a \ --enable-mpi
Modify Config.mk
"SYSLDLIBS=-lnetcdf -lU77" -> "SYSLDLIBS=-lnetcdf" "MODPATHFLAG=-p" -> "MODPATHFLAG=-I" "SYSFFLAGS=-Am -Umpi -Uomp -YALL_NAMES=LCS -YEXT_SFX=_" -> "SYSFFLAGS=-Am -Umpi -Uomp" none -> "TEST = /opt/sfw/bin/test" "MV = mv" ->"MV = /opt/sfw/bin/mv" "CP = cp -pv" -> "CP = /opt/sfw/bin/cp -pv" "INSTALL = install -m 644" -> "INSTALL = /opt/sfw/bin/install -m 644" "INSTALLBIN = install -m 755" -> "INSTALLBIN = /opt/sfw/bin/install -m 755" "INSTALLDIR = install -d -m 755" -> "INSTALLDIR = /opt/sfw/bin/install -d -m 755" "MKDIR = mkdir -p" -> "MKDIR = /opt/sfw/bin/mkdir -p" "RM = rm -fv" -> "RM = /opt/sfw/bin/rm -fv" "RMDIR = rmdir -v" -> "RMDIR = /opt/sfw/bin/rmdir -v"
Modify rules.make
"@test" -> "$(TEST)$
コンパイル
$ make
インストール
$ make install