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.
Oops, forgot to CC: support-netcdf ... ------- Forwarded Message Date: Thu, 08 May 1997 15:22:15 -0600 From: Russ Rew <address@hidden> To: "Peter Valdes Sosa" <address@hidden> Subject: Re: 970508: query >To: address@hidden >From: "Peter Valdes Sosa" <address@hidden> >Subject: query >Organization: Centro de Neurociencias de Cuba >Keywords: 199705081959.NAA00880 Hi Peter, > We have the version 2.3.2 of netcdf software. We tryied out to > compile this version in LINUX SLACKWARE, and we have found > troubles: > The file "linux.m4" do not appears. Yes, version 2.3.2 (from June 1993) was not tested on Linux. Please use version 2.4.3 instead, unless you can wait for the new version 3 we will be releasing in the next week or so. > We also have the version 2.4, where we have had troubles too. > Here the log file : (delimited by BEGIN-END) > > BEGIN > > making `all' in directory /usr/bin/display/netcdf-2.4/port > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/port' > make[1]: Leaving directory `/usr/bin/display/netcdf-2.4/port' > > returning to directory /usr/bin/display/netcdf-2.4 > > > making `all' in directory /usr/bin/display/netcdf-2.4/xdr > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/xdr' > make[1]: Leaving directory `/usr/bin/display/netcdf-2.4/xdr' > > returning to directory /usr/bin/display/netcdf-2.4 > > > making `all' in directory /usr/bin/display/netcdf-2.4/libsrc > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/libsrc' > ar rcuv libnetcdf.a array.o attr.o cdf.o dim.o file.o iarray.o error.o > globdef.o putget.o putgetg.o sharray.o string.o var.o xdrposix.o > ranlib libnetcdf.a make[1]: Leaving directory > `/usr/bin/display/netcdf-2.4/libsrc' > > returning to directory /usr/bin/display/netcdf-2.4 > > > making `all' in directory /usr/bin/display/netcdf-2.4/fortran > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/fortran' ar > rcuv ../libsrc/libnetcdf.a jackets.o ranlib ../libsrc/libnetcdf.a > make[1]: Leaving directory `/usr/bin/display/netcdf-2.4/fortran' > > returning to directory /usr/bin/display/netcdf-2.4 > > > making `all' in directory /usr/bin/display/netcdf-2.4/ncdump > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/ncdump' > cc -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a > make[1]: Leaving directory `/usr/bin/display/netcdf-2.4/ncdump' > > returning to directory /usr/bin/display/netcdf-2.4 > > > making `all' in directory /usr/bin/display/netcdf-2.4/ncgen > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/ncgen' > yacc -d ncgen.y > mv ncgen.tab.c ncgentab.c > mv: ncgen.tab.c: No such file or directory > make[1]: *** [ncgentab.c] Error 1 > make[1]: Leaving directory `/usr/bin/display/netcdf-2.4/ncgen' > make: *** [ncgen/all] Error 127 > > END This indicates that "yacc" was not generating files "ncgen.tab.c" and "ncgen.tab.h" from the file "ncgen.y". Perhaps the "yacc" on your Linux system generates "y.tab.c" and "y.tab.h" instead, as the "yacc" programs on most other Unix systems do. In this case, just do the following in the src/ncgen/ directory: mv y.tab.c ncgentab.c mv y.tab.h ncgentab.h Then from the src/ directory, continue the make by invoking "make all". If it works now, you can invoke "make test" to see if it passes its self-tests, and then "make install" to finish the installation. I believe this problem is fixed in netCDF version 3. - --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu ------- End of Forwarded Message