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.
Hi Carles, Yes, you must have a C compiler to build and install netCDF from source, even if you only want to use the Fortran library, because the Fortran library is implemented as a thin layer on top of the C library, where all the work is done. Usually the Intel Fortran compiler ifort also comes with the C compiler icc. Another user has reported success with the ifort/icc combination here: http://www.unidata.ucar.edu/netcdf/docs/other-builds.html#mac_intel_11 and also reports that the information at the Intel site is out of date. --Russ > I dowloaded netcdf-4.0.1 and am trying to install it in my laptop with > Mac OS X 10.5.7. I have Intel Fortran Compiler 11.0 installed, but not > C compiler. > > I follow the steps given in Intel page: > > http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-netcdf-with-the-intel-compilers/#13 > > I execute the following commands: > > $ source /opt/intel/Compiler/11.0/059/bin/intel64/ifortvars_intel64.sh > $ export F77=ifort > $ export FFLAGS='-O3 -xT -ip -no-prec-div -m64' > > and then I execute > > $ ./configure > > in the directory where I have all downloaded netcdf-4.0.1 files. > > The last sentence in the output of ./configure reads: > > configure:error:Could not link conftestf.o and conftest.o > > I have only the Intel Fortran compiler installed in my computer, not > the C compiler, could this be a problem?. > > The log file shows an error related to "choke me" in the main program. > Here I copy the test where the errors appear, and also attach the > whole config.log file in the end of the message. > > I would greatly appreciate if you could help me on the installation in > the above mentioned Macbook system. > > Sincerely, > > Carles Serrat > > > > > > > ****************************************************************************************** > conftest.F(3): error #5082: Syntax error, found END-OF-STATEMENT when > expecting one of: ( %% : . = => > choke me > ---------------^ > conftest.F(3): error #6218: This statement is positioned incorrectly > and/or has syntax errors. > choke me > ---------------^ > compilation aborted for conftest.F (code 1) > configure:5486: $? = 1 > configure: failed program was: > | program main > | #ifndef __GNUC__ > | choke me > | #endif > | > | end > > > configure:9333: cc -E conftest.c > conftest.c:16:28: error: ac_nonexistent.h: No such file or directory > configure:9340: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > | #define PACKAGE_NAME "netCDF" > | #define PACKAGE_TARNAME "netcdf" > | #define PACKAGE_VERSION "4.0.1" > | #define PACKAGE_STRING "netCDF 4.0.1" > | #define PACKAGE_BUGREPORT "address@hidden" > | #define PACKAGE "netcdf" > | #define VERSION "4.0.1" > | #define NCIO_MINBLOCKSIZE 256 > | #define CHUNK_CACHE_SIZE 32000000 > | #define CHUNK_CACHE_NELEMS 1000 > | #define CHUNK_CACHE_PREEMPTION 0.75 > | #define USE_EXTREME_NUMBERS 1 > | #define TEMP_LARGE "." > | /* end confdefs.h. */ > | #include <ac_nonexistent.h> > ****************************************************************************************** > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: ASW-719077 Department: Support netCDF Priority: Normal Status: Closed