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.
Stephen, >Date: Tue, 27 Jul 2004 18:11:54 -0400 >From: Stephen Leroy <address@hidden> >Organization: Harvard University >To: Steve Emmerson <address@hidden> >Subject: Re: 20040727: Trouble installing netcdf-perl > Keywords: 200407261503.i6QF3iaW011602 netCDF-perl install The above message contained the following: > I've attached the make.log from the pic netcdf build. ... > Making `all' in directory /home/leroy/Packages/netcdf-3.5.1/src/ncdump > > make[2]: Entering directory `/home/leroy/Packages/netcdf-3.5.1/src/ncdump' > gcc -o ncdump -fPIC ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a It appears from the above compilation command that the netCDF installation is incompatible with both the perl(1) utility and the attempted netCDF-Perl installation. In order to be compatible, the netCDF package would have to have been built with the "-D_LARGEFILE_SOURCE" and "-D_FILE_OFFSET_BITS=64" options. I would also advise that it be built using the cc(1) compiler instead of gcc(1). I suggest that you rebuild the netCDF package using environment variable settings that include the following: CC=cc CPPFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG" CFLAGS="-fPIC -O" Then, try to rebuild the netCDF-Perl package. Remember to do a "make distclean" as the first step for both packages. Let me know what you discover. Regards, Steve Emmerson