[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #KXN-708789]: How to intall and compile program with netcdf


> I very new to fortran and netcdf. I have cygwin installed
> on my pc. I want to run sample program available at
> http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-tutorial/simple_005fxy_005fwr_002ef90.html#simple_005fxy_005fwr_002ef90.
> Kindly can someone guide me step by step how should I install first
> netcdf binaries and then run the sample program.

Here's advice on installing netCDF version 4.1.1 on a Windows system
that has cygwin installed:


NetCDF (including the Fortran-90 API) reportedly builds and works well
under Cygwin, using the gfortran compiler.  If you have the cygwin
environment installed, you should be able to just follow the instructions
for building under Linux, which is basically

  1.  Get the source and unpack it
  2.  Set some environment variables for the cC and Fortran compilers
  3.  Run the "configure" script with appropriate options.  If you
      only need the netCDF-3 APIs, for example, you could use
  4.  Run "make all check" to compile the libraries and utilities and
      check them. This will include compiling and checking the
      examples, such as simple_xy_wr.f90.
  5.  Run "make install" to install the libraries and utilities, to 
      make it easier to compile and link applications.


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: KXN-708789
Department: Support netCDF
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.