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 Evan, > I am having some trouble installing the netcdf c and netcdf fortran > libraries. I am trying to install to the NC State Univ distribution of > RHEL6. Basically my problem is that I am setting my CPPFLAGS, LDFLAGS, and > LD_LIBRARY_PATH. I have extracted the C libraries to my > /usr/local/netcdf-3.6.3 and the fortran libraries to > /usr/local/netcdf-fortran-4.2. When I run "./configure --disable-netcdf-4 > --prefix=/usr/local/netcdf-3.6.3" in my C library, I receive the error that > the --disable-netcdf switch is unrecognized. The version of the netCDF C libraries you should be using is 4.3.0, available for download here: http://www.unidata.ucar.edu/downloads/netcdf/current/ The 3.6.3 version is about 5 years old, and is no longer supported or maintained. It didn't have a "--disable-netcdf-4" option, which was only made available in netCDF version 4.x releases. The 3.6.3 version included a bundled Fortran library, but the netCDF Fortran library has been a separate distribution since netcdf-fortran-4.2 was released. You can still build the netCDF-3 library using the --disable-netcdf-4 configure option, as described here: http://www.unidata.ucar.edu/netcdf/docs/build_classic.html After that library is built and installed, you can build and install the netCDF Fortran library by following these instructions: http://www.unidata.ucar.edu/netcdf/docs/netcdf-fortran-install.html > ... This doesnt seem like that big > of an error so I just move onto running make all and make check install. My > makes go on without errors. I then move on to the fortran library > configuration. I try to set my CPPFLAGS and LD_LIBRARY_PATH but I dont > think I have them pointing to the right directories because when I run > ./configure in this directory, it tells me it cannot find netcdf.h. I only > have one file by that name on the machine (It it in a program called > VisIT). Could you please point me in the right direction. If you encounter problems following the steps in the documentation referenced above, please let us know. > I have a feeling it is not just me and there is some underlying issue with > this. I know that KDE is a prerequisite for netcdf and KDE is not meant for > RHEL. I worked around this by installing the KDE-devel library. But it > might not have all the modules netcdf needs. KDE is *not* a prerequisite for netCDF. If there's a web page somewhere that says it is, please let us know, so we can correct the source of that misinformation. Thanks. --Russ > Thanks for your time. > > Evan > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: RMQ-116404 Department: Support netCDF Priority: Normal Status: Closed