http://www.unidata.ucar.edu/software/netcdf/
$ tar zxvf ~/archive/netcdf-fortran-4.2.tar.gz $ cd netcdf-fortran-4.2 $ ./configure --prefix=/usr/local $ make $ make -n install $ sudo make install $ ls /usr/local/lib libnetcdff.a libnetcdff.so libnetcdff.so.5.3.1 libnetcdff.la libnetcdff.so.5
えっ、これだけだとfortran用だけでそこから呼ばれるc用のライブラリは入らへんの?
$ tar zxvf ~/archive/netcdf-4.3.0.tar.gz $ cd netcdf-4.3.0 $ ./configure --prefix=/usr/local . . . configure: error: Can't find or link to the hdf5 library. Use --disable-netcdf-4 , or see config.log for errors. . . .
なんじゃ、そりゃあ?
$ tar zxvf ~/archive/netcdf-4.3.0.tar.gz $ cd netcdf-4.3.0 $ ./configure --prefix=/usr/local --disable-netcdf-4 . . . $ make . . . $ make -n install . . . echo '| If you have not already run "make check", then we strongly |' echo '| recommend you do so. It does not take very long. |' . . .
あ、すんまへん。