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.
More details on building netCDF for Linux ... ------- Forwarded Message >From: Peter S Galbraith <address@hidden> >Subject: netCDF for Linux? Success! >Keywords: 199607311622.AA17750 Might as well email this description for the mail archive such that others may profit! For Linux 1.2.13 and netcdf-2.4.2: I added the following lines to CUSTOMIZE (Note, no fortran): CC=gcc CFLAGS='-m486 -O2 -fomit-frame-pointer -pipe' CXX=g++ CXXFLAGS=-O -I/usr/lib/g++-include FC="" FFLAGS=-O prefix=/usr/local OS=linux `make all' succeeded except for the ncgen directory. i went into it and did `make all' in that directory: /opt/src/netcdf-2.4.2/src/ncgen> make all yacc -d ncgen.y make: /usr/bin/make: cannot execute binary file make: *** [ncgentab.c] Error 126 Same error. However, strangely enough, yacc worked manually: /opt/src/netcdf-2.4.2/src/ncgen> yacc -d ncgen.y /opt/src/netcdf-2.4.2/src/ncgen> mv y.tab.c ncgentab.c /opt/src/netcdf-2.4.2/src/ncgen> mv y.tab.h ncgentab.h Then, another `make all' and it is done! Then I went back to the top level, did `make all' again to do stuff after the initial error and everything was done. `make test' worked also. Cool! - - -- Peter Galbraith, research scientist <address@hidden> Maurice-Lamontagne Institute, Department of Fisheries and Oceans Canada P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada -- 418-775-0852 - FAX 418-775-0546 ------- End of Forwarded Message