以前のリビジョンの文書です


NetCDF

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.
.
.
.

なんじゃ、そりゃあ?

$ cat INSTALL
.
.
.
2 Quick Instructions for Installing NetCDF on Unix
**************************************************
 
Who has time to read long installation manuals these days?
 
   To install netCDF, uncompress and unpack the tar file, then change to
the src directory:
 
     gunzip netcdf-3.6.1.tar.gz
     tar -xf netcdf-3.6.1.tar
     cd netcdf-3.6.1/src
 
   Now run the usual configure, make check, make install cycle:
 
     ./configure
     make check
     make install
 
.
.
.

あっ、そっか、そっか、

$ ./configure --prefix=/usr/local
$ make check
.
.
.

えっ、そう言うことじゃなくて?

$ cat INSTALL
.
.
.
3.1 Installation Requirements
.
.
.
   To fully work with the netCDF source code, several extra utilities
are required to fully build everything from source. If you are going to
modify the netCDF source code, you will need some or all of the
following Unix tools.
 
`m4'
     Macro processing language used heavily in libsrc, nc_test.
     Generates (in these cases) C code from m4 source. Version 1.4
     works fine with release 3.5.1 through 3.6.1.
 
`nm'
     Lists contents of an "object" file. GNU nm does not mix well with
     vendor compilers in the 64-bit world, so make sure that you are
     using GNU nm with GNU compilers, or a vendor nm with your vendor
     compiler.
 
`ar'
     Creates libraries. GNU ar does not mix well with vendor compilers
     in the 64-bit world, so make sure that you are using GNU ar with
     GNU compilers, or a vendor ar with your vendor compiler.
 
 
   The following tools are not required to build netCDF. They may be
needed if you intend to work with the netCDF source code as a developer.
.
.
.

もしかして、

$ m4
プログラム 'm4' はまだインストールされていません。  次のように入力することでインストールできます:
sudo apt-get install m4
$
linux/netcdf.1383807975.txt.gz · 最終更新: 2013/11/07 16:06 by kimi
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0