netcdf ビルドログ @ joho03-itpass
- 作業日 2016/05/31
- 作業者 高橋芳幸
準備
必要なファイルの取得
必要なファイル
- netcdf
ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.2.1.tar.gz ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-fortran-4.2-rc1.tar.gz
ビルド
netcdf(-c)
ビルドは ~/tmp/netcdf で行う.
展開
% tar xvf netcdf-4.2.1.tar.gz % cd netcdf-4.2.1
環境変数の設定, configure, make
% setenv CPPFLAGS "-I/home/yot/local/zlib-1.2.8-gnu/include -I/home/yot/local/hdf5-1.8.17-gnu/include" % setenv LDFLAGS "-L/home/yot/local/zlib-1.2.8-gnu/lib -L/home/yot/local/hdf5-1.8.17-gnu/lib" % ./configure --prefix=/home/yot/local/netcdf-c4.2.1-f4.2-rc1-frt-gnu |& tee zzz-config.log % make | & tee zzz-make.log % make check | & tee zzz-make_check.log % make install | & tee zzz-make_install.log
netcdf-fortran
展開
% tar xvf netcdf-fortran-4.2-rc1.tar.gz % cd netcdf-fortran-4.2-rc1
環境変数の設定, configure, make
% setenv FC frt % setenv FCFLAGS -Am % setenv LD_LIBRARY_PATH "/home/yot/local/netcdf-c4.2.1-f4.2-rc1-frt-gnu/lib:$LD_LIBRARY_PATH" % setenv CPPFLAGS "-I/home/yot/local/zlib-1.2.8-gnu/include -I/home/yot/local/hdf5-1.8.17-gnu/include -I/home/yot/local/netcdf-c4.2.1-f4.2-rc1-frt-gnu/include" % setenv LDFLAGS "-L/home/yot/local/zlib-1.2.8-gnu/lib -L/home/yot/local/hdf5-1.8.17-gnu/lib -L/home/yot/local/netcdf-c4.2.1-f4.2-rc1-frt-gnu/lib" % ./configure --prefix=/home/yot/local/netcdf-c4.2.1-f4.2-rc1-frt-gnu --enable-shared=no |& tee zzz-config.log % make | & tee zzz-make.log % make check | & tee zzz-make_check.log % make install | & tee zzz-make_install.log