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.
Greetings Liang, /Developer/usr/bin/gcc is an old path, but it seems to be picking the right gcc version for you (which is interesting). What is the output of xcode-select -print-path It should be /Applications/Xcode.app/Contents/Developer If not, run this command to select the correct instance of Xcode: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer Then try running configure again. Also, if you are really only interested in the classic library, then make sure to add --disable-netcdf-4 to the flags in your configure command: ./configure --prefix=/Users/liangguo/Applications --disable-netcdf-4 --disable-dap Let me know how this goes for you. If none of these things work, could you send me the output of the command env? Cheers! Sean > Hi Sean, > > I update the Xcode to the latest version (4.3.2) from apple store. The > problem is still there. > > > which gcc > /Developer/usr/bin/gcc > > > gcc --version > i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > Thank you ver much, > Liang > > > Ticket Details =================== Ticket ID: XDX-509004 Department: Support netCDF Priority: Normal Status: Open