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.
Hello, `--disable-dap`and `--disable-netcdf-4` are options used when configuring 'netcdf-c', not 'netcdf-fortran'. You can ignore the warnings you received from `configure` for netCDF-Fortran. From the `config.log` file you provided, it appears that netCDF-C (libnetcdf) is not installed on your system. You will need to first install the netCDF-C libraries, which may be downloaded here: https://github.com/Unidata/netcdf-c/releases. I am not very familiar with WRF or their installation instructions, so you may want to contact the WRF team to see if they can provide information regarding a specific version of netCDF-C, etc. I hope this helps, have a great day, -Ward > Hardware: The Ubuntu 22.04.3 OS is installed in an external drive, which I > connect to my computer. > Description of problem: Hello. I am Brian Añano, and I would like to ask for > help in solving an error I encountered while building the netCDF library for > the WRF (Weather Research and Forecasting) Model in my Ubuntu 22.04.3 > computer. I was about to install netcdf-fortran-4.5.2 by entering these set > of commands in csh: > > tar xzvf netcdf-fortran-4.5.2.tar.gz > cd netcdf-fortran-4.5.2 > ./configure --prefix=$DIR/netcdf --disable-dap --disable-netcdf-4 > --disable-shared > make > make install > setenv PATH $DIR/netcdf/bin:$PATH > setenv NETCDF $DIR/netcdf > cd .. > > The error appears after I enter ./configure --prefix=$DIR/netcdf > --disable-dap --disable-netcdf-4 --disable-shared, after which the following > appeared: > > configure: WARNING: unrecognized options: --disable-dap, --disable-netcdf-4 > configure: netCDF-Fortran 4.5.2 > checking build system type... x86_64-pc-linux-gnu > checking host system type... x86_64-pc-linux-gnu > checking target system type... x86_64-pc-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /usr/bin/mkdir -p > checking for gawk... no > checking for mawk... mawk > checking whether make sets $(MAKE)... yes > checking whether make supports nested variables... yes > checking whether to enable maintainer-specific portions of Makefiles... no > configure: checking user options > checking whether make supports the include directive... yes (GNU style) > checking for gcc... gcc > checking whether the C compiler works... no > configure: error: in > `/home/brianwrf/Documents/Build_WRF/LIBRARIES/netcdf-fortran-4.5.2': > configure: error: C compiler cannot create executables > See `config.log' for more details > > How do I troubleshoot this error? For your additional information (if this > helps in pinponting the problem), I am running Ubuntu 22.04.3 on an external > drive connected to my computer. Attached herewith is the `config.log' for > your reference. Also, I'm new to Ubuntu 22.04.3 so I'm very much > inexperienced in running Terminal commands, so I would really appreciate it > if I were given precise steps in troubleshooting this error, including the > commands to type if any. > > Thank you very much. > > Ticket Details =================== Ticket ID: HHB-930547 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.