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.
David, > To: address@hidden > cc: address@hidden > From: address@hidden (David L. Dubois) > Subject: Installing netCDF on a Solaris machine > Organization: Woods Hole Oceanographic Institution > Keywords: 199607311346.AA14342 In the above message you wrote: > Hello, > I'm having trouble installing netCDF on a SPARC LX and a SPARC 4. I've > tried to install both netCDF-2.3.2pl2 and netCDF-2.4.2 with similar results. > I run configure and get: > > reading configuration customizations > checking for cc > checking for ar > checking for ranlib > checking for fill value usage > setting the installation prefix > checking for type of machine > checking for which > checking how to run the C preprocessor > checking for f77 > checking for neqn > checking for tbl > checking for install > checking for makeinfo > checking endianess > checking type of netlong > checking for XDR header-file > checking XDR library > checking for function prototypes > checking for working const > checking for variadic function support > checking for strerror > checking for package version > creating config.status > creating Makefile > creating xdr/Makefile > creating libsrc/Makefile > creating fortran/Makefile > creating ncgen/Makefile > creating ncdump/Makefile > creating nctest/Makefile > creating doc/Makefile > creating port/Makefile > creating port/master.mk > creating libsrc/netcdf.h > /usr/ucb/cc: language optional software package not installed > conftest: No such file or directory > > Thinking that it has created all the makefiles I need, I then issue the > "make all" command and get: > > making `all' in directory /melt/netcdf-2.3.2pl2/port > > incdir=`echo /melt/include | sed s',/,\\\/,g'`; \ > cc -M -I. -DNDEBUG -DNO_HAVE_PROTOTYPES -Dconst= -DNO_STDARG -DNO_STRERROR > *.c 2> /dev/null | \ > awk '{ \ > if ($0 ~ /:/) { \ > target = $1; \ > if (target ~ /:/) { \ > target = substr(target,1,length(target)-1); \ > start = 2; \ > } else { \ > start = 3; \ > } \ > } else { \ > start = 1; \ > } \ > for (i = start; i <= NF; ++i) { \ > if ($i !~ /^\\/ && \ > $i !~ /port\// && \ > $i !~ /^\//) \ > print target ": " $i \ > } \ > }' > depend > tag='### DO NOT DELETE THIS LINE. make depend DEPENDS ON IT ###'; \ > sed -e "/^$tag$/r depend" \ > -e "/^$tag$/q" Makefile > Makefile.new > mv Makefile.new Makefile > cc -c -I. -DNDEBUG -DNO_HAVE_PROTOTYPES -Dconst= -DNO_STDARG -DNO_STRERROR -O > uddummy.c > /usr/ucb/cc: language optional software package not installed > *** Error code 1 > make: Fatal error: Command failed for target `uddummy.o' > Current working directory /melt/netcdf-2.3.2pl2/port > *** Error code 1 > make: Fatal error: Command failed for target `all' > Current working directory /melt/netcdf-2.3.2pl2/port > *** Error code 1 > make: Fatal error: Command failed for target `port/all' > > These were specific to the netCDF-2.3.2pl2 version on the SPARC LX. > The main problem seems to be this > > /usr/ucb/cc: language optional software package not installed > *** Error code 1 > > Is there a solution you're aware of? If not can I work around it and just tar > a working version off a SunOS machine. All this is in prep for installing > GMT 3.0. > > Thanks in advance, > David DuBois > WHOI If you're trying to build the netCDF pacakge using /usr/ucb/cc then you'll probably have severe problems. That's a very, very old and non-standard compiler. I suggest that you try building the latest netCDF package (version 2.4.2) using a Standard C compiler. The easiest way to ensure that the correct compiler is used is to place the containing directory near the front of your PATH environment variable. I suggest that you try the following: 1. Go to the top-level source directory of the netCDF 2.4.2 package. 2. Remove the file `config.cache' if it exists. 3. Save the output from the command `uname -a'. 4. Save the output from the command `env'. 5. Execute the `configure' script. Save the output. 6. Stop if the above fails and send me all previous output. 7. Execute the command `make'. Save the output. 8. Stop if the above fails and send me all previous output. 9. Execute the command `make test'. Save the output. 10. Stop if the above fails and send me all previous output. 11. Execute the command `make install'. Save the output. 12. Stop if the above fails and send me all previous output. 13. Execute the command `make clean'. Please let me know if this helps. -------- Steve Emmerson <address@hidden>