Greetings Liang, It looks like configure finds something for gcc, but gcc isn't really there. One way this can happen is when a symbolic link points to a file that is no longer on the system. What is the output of the following commands: which gcc gcc --version Please let me know what the output of the command(s) is, and we'll move on to the next step. Also, if you haven't done so yet, this may be a good time to upgrade to the latest Apple Xcode (Free on the App store). This will install the latest compilers from Apple and fix any missing compiler symoblic links on your system. Cheers! Sean > Hi, > > I try to build netcdf-4.2 on my mac laptop. > I follow the instruction in INSTALL file, and build the NetCDF with Classic > Library only. > > When I type in > ./configure --prefix=/Users/liangguo/Applications --disable-dap > > there are error coming out: > ======================= > /bin/bash:/Users/liangguo/Downloads/netcdf-4.2$ ./configure > --prefix=/Users/liangguo/Applications --disable-dap > configure: netCDF 4.2 > checking build system type... x86_64-apple-darwin11.3.0 > checking host system type... x86_64-apple-darwin11.3.0 > checking target system type... x86_64-apple-darwin11.3.0 > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... ./install-sh -c -d > checking for gawk... no > checking for mawk... no > checking for nawk... no > checking for awk... awk > checking whether make sets $(MAKE)... yes > configure: checking user options > checking whether a NCIO_MINBLOCKSIZE was specified... 256 > checking if fsync support is enabled... yes > checking whether extra valgrind tests should be run... no > checking whether we should try to build netCDF-4... yes > checking whether reading of HDF4 SD files is to be enabled... no > checking whether to fetch some sample HDF4 files from Unidata ftp site to > test HDF4 reading (requires wget)... no > checking whether parallel I/O for classic and 64-bit offset files using > parallel-netcdf is to be enabled... no > checking whether extra example tests should be run... no > checking whether parallel IO tests should be run... no > checking whether a default chunk size in bytes was specified... 4194304 > checking whether a maximum per-variable cache size for HDF5 was specified... > 67108864 > checking whether a number of chunks for the default per-variable cache was > specified... 10 > checking whether a default file cache size for HDF5 was specified... 4194304 > checking whether a default file cache maximum number of elements for HDF5 was > specified... 1009 > checking whether a default cache preemption for HDF5 was specified... 0.75 > checking whether netCDF-4 logging is enabled... no > checking whether cdmremote client is to be built... no > checking whether DAP client is to be built... no > checking for style of include used by make... GNU > checking for gcc... gcc > checking whether the C compiler works... no > configure: error: in `/Users/liangguo/Downloads/netcdf-4.2': > configure: error: C compiler cannot create executables > See `config.log' for more details > ========================= > > Does anyone know what is wrong? I also attach the config.log with the email. > > Thank you very much, > Liang > > > Ticket Details =================== Ticket ID: XDX-509004 Department: Support netCDF Priority: Normal Status: Open
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.