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.
Jonh, > From: "E.John Joseph" <address@hidden> > Subject: Failed netcdf-3.5.0 installation > Organization: Institute of Oceanic Research and Development, Tokai > University, Shimizu, Japan > Keywords: 200107310806.f6V86u102983 netCDF 3.5.0 install > > I tried to install netcdf-3.5.0 but failed. Then I did > various steps as explained in INSTALL.html and the results > are given below. Kindly assist me for netcdf installation. > > thanks in advance > > John > ============================================================== > JIROCOM6@JIROCOM /usr/local/GMT/netcdf-3.5.0/src > $ uname -a > CYGWIN_98-4.10 JIROCOM6 1.3.2(0.39/3/2) 2001-05-20 23:28 i586 unknown > > JIROCOM6@JIROCOM /usr/local/GMT/netcdf-3.5.0/src > $ ls > COMPATIBILITY VERSION configure.log macros.make nctest > COPYRIGHT aclocal.m4 conftest.c macros.make.def nf_test > ConfiLog confdefs.h conftestf.f macros.make.in rules.make > INSTALL.html config.cache cxx man > Makefile config.log f90 nc_test > README configure fortran ncdump > RELEASE_NOTES configure.in libsrc ncgen > > JIROCOM6@JIROCOM /usr/local/GMT/netcdf-3.5.0/src > $which gcc > /usr/bin/gcc > > JIROCOM6@JIROCOM /usr/local/GMT/netcdf-3.5.0/src > $which C++ > /usr/bin/C++ > > JIROCOM6@JIROCOM /usr/local/GMT/netcdf-3.5.0/src > $which f77 > no f77 in > /usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND > > JIROCOM6@JIROCOM /usr/local/GMT/netcdf-3.5.0/src > $which f90 > no f90 in > /usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND > > ---------------------------------------------------------------------------- > configure.log > -------------------------- > creating cache ./config.cache > checking for top-level source-directory > /usr/local/GMT/netcdf-3.5.0/src > checking for m4 preprocessor > checking for m4... m4 > checking m4 flags... -B10000 > checking C compiler "c89"... failed to compile test program The last line above indicates a serious error. The reason will be described in the file "config.log". > checking how to make dependencies... false > checking for CC... no > checking for cxx... no > checking for c++... c++ > checking C++ compiler "c++"... works > checking how to run the C preprocessor... c89 -E > checking for xlf... no > checking for fort77... no > checking for ghf77... no > checking for f77... no > checking for cf77... no > checking for g77... g77 > checking for Fortran .F compiler... > checking if Fortran-77 compiler handles *.F files... yes > checking "g77" as Fortran-90 compiler... failed to build test program > checking for xlf90... no > checking for f90... no > checking for nm utility > checking for nm... nm > checking nm flags... > checking for C-equivalent to Fortran routine "SUB"... sub_ > checking for Fortran "byte"... yes > checking for Fortran "integer*2"... yes > checking if Fortran "byte" is C "signed char"... > ---------------------------------------------------------------------- > config.log > ------------------------ > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:928: checking for top-level source-directory > configure:938: checking for m4 preprocessor > configure:945: checking for m4 > configure:1012: checking m4 flags > configure:1085: checking C compiler "c89" > configure:1094: c89 -c -O -0 -DNDEBUG conftest.c 1>&5 > c89: not found The last line above indicates the reason for the failure: the configure script couldn't find the "c89" compiler. Assuming that you wanted to use "/usr/bin/gcc" as the C compiler, then you need to ensure that the CC environment variable is appropriately set before executing the configure script. Try the following: 1. Go to the top-level source directory of the netCDF package. 2. Perform steps 3 through 5 which are described near the end of the file "INSTALL.html". 3. Ensure that the environment variable CC is set to "/usr/bin/gcc". 4. Perform steps 6 though 9 which are described near the end of the file "INSTALL.html". Please let me know if this helps. Regards, Steve Emmerson <http://www.unidata.ucar.edu>