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.
>To: address@hidden >From: Darren Alman <address@hidden> >Subject: netcdf: Installation problems >Organization: . >Keywords: 199902192151.OAA20044 Hi Darren, > A. uname -a > => SunOS aries.ne.uiuc.edu 5.6 Generic_105181-03 sun4u sparc > SUNW,Ultra-5_10 > > B. 3.4 > > C. CC: /usr/ucb/cc Make sure you don't try to build netCDF on a SunOS system using the ancient /usr/ucb/cc compiler, which doesn't understand standard C. The netCDF source distribution requires a standard C compiler to build. Although the above presumable shows where "cc" is coming from, presumably you have set the CC environment variable to "c89" and are actually using that compiler, according to the later output you provided below. > gcc: /opt/GCC281/bin/gcc > f77 /opt/SUNWspro/bin/f77 > fpp: /opt/SUNWspro/bin/fpp > > D. see attachments > > E. see attachments ... > creating cache ./config.cache > checking for m4... no > checking for gm4... no > checking for xlc... no > checking for c89... c89 > checking C compiler... works > checking how to make dependencies... cc -xM > checking for CC... CC > checking C++ compiler "CC"... works > checking how to run the C preprocessor... c89 -E > checking for f77... f77 > checking for Fortran .F compiler... > checking if Fortran compiler handles *.F files... yes > checking for C-equivalent to Fortran routine "SUB"... configure: nm: not found The above error indicates you don't have "/usr/ccs/bin/" or "/usr/xpg4/bin" in your PATH, because the "nm" utility, as well as "make", "ld", "size", and other program development tools are found in one of those directories (they used to be in /usr/bin/ before Unix SVR4). If neither /usr/ccs/bin/ nor /usr/xpg4/bin/ exists on your system, it has not been configured for program development, so you will have to either - install a substitute set of FSF/GNU tools; - get your system properly configured for compiling programs by installing the necessary Sun package; or - install the binary netCDF distribution for SunOS 5.6/Sparc platforms from ftp://ftp.unidata.ucar.edu/pub/binary/sunos_5.6-sparc/netcdf-3.4.tar.Z If /usr/ccs/bin/ exists, just prepend it to your PATH environment variable before running the configure script. Make sure you remove the config.cache file first, if the previous configure run created it. For more details of environment variable settings known to work on SunOS 5.6 (as well as instructions for setting environment variables under different shells), see the latest netCDF INSTALL file at http://www.unidata.ucar.edu/packages/netcdf/INSTALL --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu