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 Mike, --disable-netcdf-4 and --disable-dap are unnecessary when building the C++ interface. The interface layer just acts as a ‘pass-through’ for the underlying libnetcdf library. As a result, cxx4 will have DAP if libnetcdf has DAP, etc.. I guess an easier way to think of it is that these features will be controlled when building netcdf-c, not the interfaces (C++, Fortran, Python, etc). Regarding the error you are getting; the C++ interface requires that the C library be built with netcdf-4 functionality. This will require re-building libnetcdf with the --disable-netcdf-4 flag excluded. I hope this clarifies things; let me know if there’s anything else I can help with! -Ward On Thu, Oct 22, 2015 at 1:09 PM, address@hidden < address@hidden> wrote: New Client Reply: Netcdf 4.2.1.1 > > Ward, > > New problems. > > I jumped into netcdf-cxx-4.2.1 and found a configure file but when I use > the same configure command that I used for building in > netcdf-4.2.1.1.tar.gz: > ./configure --prefix=/u/Michael.Page/netcdf_c++/netcdf-cxx4-4.2.1 > --disable-netcdf-4 --disable-dap > > first I get a warning: > > configure: WARNING: unrecognized options: --disable-netcdf-4, > --disable-dap > > and then an error: > > checking for nc_use_parallel_enabled... no > > configure: error: NetCDF must be built with netCDF-4 enabled. > > so I changed the configure command to: > > ./configure --prefix=/u/Michael.Page/c++/netcdf-cxx4-4.2.1 > --enable-netCDF-4 > > configure: WARNING: unrecognized options: --enable-netCDF-4 > > I don’t understand what’s going on. > Can you explain? > > Mike Page > Theory and Practice, LLC > www.linkedin.com/in/MikePageHPC > address@hidden > 303-944-8291 > > > > > On Oct 22, 2015, at 10:08 AM, address@hidden wrote: > > > > Ward, > > > > Thanks for your response and the info included. > > > > I think I have taken a step forward with the problems that were tripping > me up. > > > > On your NetCDF downloads page, I found the link to “Archived NetCDF > source code”. > > From that list I grabbed netcdf-4.2.1.1.tar.gz > > It included a configure file and the build went well. > > I also need to build Fortran and C++ libraries, etc so I grabbed > > netcdf-fortran-netcdf-fortran-4.2.tar.gz and neycdf-cxx4-4.2.1.tar.gz > from the respective links on the same NetCDF downloads page > > > > I am about to make the transfers to my host machine and start the builds. > > I think I am moving in the right direction. > > > > PS. My user community insists on 4.2.1 and 3.6.3. When the dust settles > I will probably install 4.3 as well. > > > > Mike Page > > Theory and Practice, LLC > > www.linkedin.com/in/MikePageHPC > > address@hidden > > 303-944-8291 > > > > > > > >> On Oct 22, 2015, at 9:55 AM, Unidata netCDF Support < > address@hidden> wrote: > >> > >> Hi Mike, > >> > >> NetCDF-4.2.1.1 is an old version, that was backported to GitHub when we > migrated ~ a year and a half ago. As a result, these old releases (on > GitHub) do not contain the configure/autotools files, as we would have to > add them by hand and then they would show up as 'newer' releases in the > release timeline. > >> > >> You can generate `configure` and dependent files by running `autoreconf > -if` in the top-level directory. As a developer, you might have these > tools installed and if so, great. If not, the easiest thing would be to > use our latest release, netCDF-C 4.3.3.1, available from > https://github.com/Unidata/netcdf-c/releases/tag/v4.3.3.1. This is the > latest version, and contains all of the configuration files. > >> > >> I hope this helps, have a great day, > >> > >> -Ward > >> > >>> I just downloaded netcdf-c-netcdf-4.2.1.1 from > https://github.com/Unidata/netcdf-c/releases?after=netcdf-4.3.0 > >>> > >>> The INSTALL file instructs on using ./configure as the first step in > the build process but I can’t find the configure executable in my download. > >>> > >>> What am I missing? > >>> > >>> Thanks > >>> > >>> Mike Page > >>> Theory and Practice, LLC > >>> www.linkedin.com/in/MikePageHPC > >>> address@hidden > >>> 303-944-8291 > >>> > >>> > >>> > >>> > >> > >> Ticket Details > >> =================== > >> Ticket ID: LSJ-357371 > >> Department: Support netCDF > >> Priority: Normal > >> Status: Closed > >> > > > > > > > Ticket Details > =================== > Ticket ID: LSJ-357371 > Department: Support netCDF > Priority: Normal > Status: Open > Link: > https://andy.unidata.ucar.edu/esupport/staff/index.php?_m=tickets&_a=viewticket&ticketid=26264 > > Ticket Details =================== Ticket ID: LSJ-357371 Department: Support netCDF Priority: Normal Status: Open