This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi, > I am quite new about netcdf-fortran and I am going to install netcdf for > my fedora18 desktop. Althrough I browse through the netcdfgroup mailing > list all day long, I still can't get it work for my Fortran 90 project. > > First I use > > yum install netcdf.x86_64 > > to install the C version of netcdf 4.2.1.1 then, > > yum install netcd-fortran.x86_64 > > to get a Fortran Version (it seems do not contain fortran 90 support) > > Now the example script "simple_x_y_w.c" (C) and "simple_x_y_w.f"(Fortran > 77) works for the following command: > gcc simple_x_y_w.c -lnetcdf > gfortran simple_x_y_w.f90 -o a.out -L/usr/lib64 -lnetcdff -I/usr/include > But when I > gfortran simple_x_y_w.f90 -o a.out -L/usr/lib64 -I/usr/include > the necessary head file netcdf.f90 is not found in neither /usr/include nor > /usr/lib64/ Sorry, but we don't create or maintain the yum install packages for netCDF, so don't know how they are built or what to do when they don't work. I would be very surprised if the netcd-fortran.x86_64 package doesn't include Fortran-90 support, because "yum info" says it's version 4.2, which is the most current released version of netCDF-Fortran. > How can I fix this? > > Shall I install netcdf-fortran from the source file rather than "yum > install"? That's what I would recommend, following these instructions: http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: DQK-543210 Department: Support netCDF Priority: Normal Status: Closed