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.
Here is your problem: configure:1582: checking for C compiler default output file name configure:1585: cc -g conftest.c >&5 ld: can't locate file for: -lcrt1.o configure:1588: $? = 1 Your C compiler is, in some way, broken. Funny thing is, I have just encountered this same error myself, on a new (to me) linux system. I haven't yet figured out what the heck is going on with it, but I get this missing crt1 file as well. Furthermore, it has nothing to do with netCDF. I get this error when I am trying to upgrade gcc! So what is going on, I don't know. In any case, the program that the netCDF configure was trying to compile is a very simple C program: configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "netCDF" | #define PACKAGE_TARNAME "netcdf" | #define PACKAGE_VERSION "3.6.1" | #define PACKAGE_STRING "netCDF 3.6.1" | #define PACKAGE_BUGREPORT "address@hidden" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } As you can see, this is just a program that does nothing and returns 0. If your C compiler doesn't compile it, then you can't compile netCDF. I suggest you contact your sysadmin about this. Or try upgrading gcc (which is reasonably old, version 3.3 - the latest official release is 4.0). But I know that netCDF compiles with older versions of gcc than that. However, your gcc seems to be broken. If I figure out more clearly what is going wrong, I'll let you know. For now, all I can say is that you don't have a working C compiler. Have you tried the netCDF binaries? They can be installed without a C compiler... Ed -- Ed Hartnett -- address@hidden