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'm trying to install netcdf 4.1.1 together with hdf5 1.8.2. > I keep getting an error when compiling netcdf: > > Making all in ncdump > make[2]: Entering directory `/home/marston/SOFTWARE/netcdf-4.1.1/ncdump' > ../ncgen/ncgen -c -o ctest0.nc ./../ncgen/c0.cdl > ./ctest.c > /home/marston/SOFTWARE/netcdf-4.1.1/ncgen/.libs/lt-ncgen: symbol lookup > error: /home/marston/SOFTWARE/netcdf-4.1.1/libsrc4/.libs/libnetcdf.so.6: > undefined symbol: ompi_mpi_char > make[2]: *** [ctest.c] Error 127 > make[2]: Leaving directory `/home/marston/SOFTWARE/netcdf-4.1.1/ncdump' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/marston/SOFTWARE/netcdf-4.1.1' > make: *** [all] Error 2 > > > I've updated openMPI but still I get this error. > > Does anyone know what's going on here? > > /M > > > - Howdy Marston! I don't know why, but your build is getting confused about whether it is building with shared or static libraries. I suggest you do a make distclean, and rerun the configure and make. Thanks, Ed Ticket Details =================== Ticket ID: OJY-545370 Department: Support netCDF Priority: Emergency Status: Closed