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.
> Dear Sirs! > > I am trying to install NETCDF version 3.6.2 on Ubuntu 7.10 amd64 > I use Intel ifort 10.1 compiler and gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) > > I tested ifort on simple test and it works. > > I run "sudo ./configure --prefix=/usr/local/netcdf FC=ifort" > > and I got strange error in config.log: > .............. > configure:4977: checking for Fortran 77 compiler version > configure:4984: ifort --version >&5 > ./configure: line 4985: ifort: command not found > configure:4987: $? = 127 > configure:4994: ifort -v >&5 > ./configure: line 4995: ifort: command not found > configure:4997: $? = 127 > configure:5004: ifort -V >&5 > ./configure: line 5005: ifort: command not found > configure:5007: $? = 127 > configure:5015: checking whether we are using the GNU Fortran 77 compiler > configure:5034: ifort -c conftest.F >&5 > ./configure: line 5035: ifort: command not found > configure:5040: $? = 127 > ....................... > > The out from my test: > #! /bin/sh > # > ifort --version > ifort -v > ifort -V > ifort -c conftest.F > > is: > > ifort (IFORT) 10.1 20070913 > Copyright (C) 1985-2007 Intel Corporation. All rights reserved. > > Version 10.1 > Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 10.1 Build 20070913 > Copyright (C) 1985-2007 Intel Corporation. All rights reserved. > FOR NON-COMMERCIAL USE ONLY > > fpp: fatal: can't fopen file: conftest.F > > (there is no conftest.F) > > Could you please give some ideas of how to solve this? > Best regards, Primoz Mlakar > > > config.log: > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > It was created by netCDF configure 3.6.2, which was > generated by GNU Autoconf 2.61. Invocation command line was > > $ ./configure --prefix=/usr/local/netcdf FC=ifort > > ## --------- ## > ## Platform. ## > ## --------- ## > > hostname = worf > uname -m = x86_64 > uname -r = 2.6.22-14-generic > uname -s = Linux > uname -v = #1 SMP Sun Oct 14 21:45:15 GMT 2007 > > /usr/bin/uname -p = unknown > /bin/uname -X = unknown > > /bin/arch = unknown > /usr/bin/arch -k = unknown > /usr/convex/getsysinfo = unknown > /usr/bin/hostinfo = unknown > /bin/machine = unknown > /usr/bin/oslevel = unknown > /bin/universe = unknown > > PATH: /usr/local/sbin > PATH: /usr/local/bin > PATH: /usr/sbin > PATH: /usr/bin > PATH: /sbin > PATH: /bin > PATH: /usr/X11R6/bin > > > ## ----------- ## > ## Core tests. ## > ## ----------- ## > > configure:2046: netCDF 3.6.2 > configure:2087: checking build system type > configure:2105: result: x86_64-unknown-linux-gnu > configure:2127: checking host system type > configure:2142: result: x86_64-unknown-linux-gnu > configure:2187: checking for a BSD-compatible install > configure:2243: result: /usr/bin/install -c > configure:2254: checking whether build environment is sane > configure:2297: result: yes > configure:2362: checking for gawk > configure:2378: found /usr/bin/gawk > configure:2389: result: gawk > configure:2400: checking whether make sets $(MAKE) > configure:2421: result: yes > configure:2609: checking user options > configure:2653: checking whether CXX is set to '' > configure:2657: result: no > configure:2661: checking whether FC is set to '' > configure:2665: result: no > configure:2669: checking whether F90 is set to '' > configure:2673: result: no > configure:2699: checking whether documentation is to be installed > configure:2707: result: no > configure:2723: checking whether Fortran compiler(s) should be tested during configure > configure:2731: result: yes > configure:2736: checking whether configure should try to set compiler flags > configure:2744: result: yes > configure:2748: checking whether FFIO will be used > configure:2756: result: no > configure:2771: checking whether to skip C++, F77, or F90 APIs if compiler is broken > configure:2779: result: yes > configure:2783: checking whether only the C library is desired > configure:2791: result: no > configure:2810: checking whether examples should be built > configure:2818: result: yes > configure:2832: checking whether F77 API is desired > configure:2841: result: yes > configure:2846: checking whether F90 API is desired > configure:2856: result: yes > configure:2860: checking whether fortran type sizes should be checked > configure:2868: result: yes > configure:2874: checking whether C API is desired > configure:2882: result: yes > configure:2889: checking where to get netCDF C-only library for separate fortran libraries > configure:2907: result: > configure:2922: checking whether CXX API is desired > configure:2931: result: yes > configure:2935: checking whether v2 netCDF API should be built > configure:2943: result: yes > configure:2964: checking whether the ncgen/ncdump should be built > configure:2972: result: yes > configure:2986: checking whether large file (> 2GB) tests should be run > configure:2994: result: no > configure:3008: checking whether extreme numbers should be used in tests > configure:3023: result: yes > configure:3037: checking where to put large temp files if large file tests are run > configure:3046: result: . > configure:3057: checking whether a win32 DLL is desired > configure:3065: result: no > configure:3091: checking whether separate fortran libs are desired > configure:3100: result: no > configure:3159: finding C compiler > configure:3216: checking for xlc > configure:3246: result: no > configure:3216: checking for cc > configure:3232: found /usr/bin/cc > configure:3243: result: cc > configure:3279: checking for C compiler version > configure:3286: cc --version >&5 > cc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) > Copyright (C) 2006 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. > > configure:3289: $? = 0 > configure:3296: cc -v >&5 > Using built-in specs. > Target: x86_64-linux-gnu > Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared > > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls > > --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu > > --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu > Thread model: posix > gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) > configure:3299: $? = 0 > configure:3306: cc -V >&5 > cc: '-V' option must have argument > configure:3309: $? = 1 > configure:3332: checking for C compiler default output file name > configure:3359: cc conftest.c >&5 > configure:3362: $? = 0 > configure:3400: result: a.out > configure:3417: checking whether the C compiler works > configure:3427: ./a.out > configure:3430: $? = 0 > configure:3447: result: yes > configure:3454: checking whether we are cross compiling > configure:3456: result: no > configure:3459: checking for suffix of executables > configure:3466: cc -o conftest conftest.c >&5 > configure:3469: $? = 0 > configure:3493: result: > configure:3499: checking for suffix of object files > configure:3525: cc -c conftest.c >&5 > configure:3528: $? = 0 > configure:3551: result: o > configure:3555: checking whether we are using the GNU C compiler > configure:3584: cc -c conftest.c >&5 > configure:3590: $? = 0 > configure:3607: result: yes > configure:3612: checking whether cc accepts -g > configure:3642: cc -c -g conftest.c >&5 > configure:3648: $? = 0 > configure:3747: result: yes > configure:3764: checking for cc option to accept ISO C89 > configure:3838: cc -c -g -O2 conftest.c >&5 > configure:3844: $? = 0 > configure:3867: result: none needed > configure:3896: checking for style of include used by make > configure:3924: result: GNU > configure:3952: checking dependency style of cc > configure:4042: result: gcc3 > configure:4063: checking whether cc understands -c and -o together > configure:4095: cc -c conftest.c -o conftest2.o >&5 > configure:4098: $? = 0 > configure:4104: cc -c conftest.c -o conftest2.o >&5 > configure:4107: $? = 0 > configure:4159: result: yes > configure:4185: checking for an ANSI C-conforming const > configure:4260: cc -c -g -O2 conftest.c >&5 > configure:4266: $? = 0 > configure:4281: result: yes > configure:4312: finding Fortran compiler (will not be used if Fortran API is not desired) > configure:4702: checking for Fortran compiler version > configure:4709: ifort --version >&5 > ./configure: line 4710: ifort: command not found > configure:4712: $? = 127 > configure:4719: ifort -v >&5 > ./configure: line 4720: ifort: command not found > configure:4722: $? = 127 > configure:4729: ifort -V >&5 > ./configure: line 4730: ifort: command not found > configure:4732: $? = 127 > configure:4740: checking whether we are using the GNU Fortran compiler > configure:4759: ifort -c conftest.F >&5 > ./configure: line 4760: ifort: command not found > configure:4765: $? = 127 > configure: failed program was: > | program main > | #ifndef __GNUC__ > | choke me > | #endif > | > | end > configure:4782: result: no > configure:4788: checking whether ifort accepts -g > configure:4805: ifort -c -g conftest.f >&5 > ./configure: line 4806: ifort: command not found > configure:4811: $? = 127 > configure: failed program was: > | program main > | > | end > configure:4827: result: no > configure:4977: checking for Fortran 77 compiler version > configure:4984: ifort --version >&5 > ./configure: line 4985: ifort: command not found > configure:4987: $? = 127 > configure:4994: ifort -v >&5 > ./configure: line 4995: ifort: command not found > configure:4997: $? = 127 > configure:5004: ifort -V >&5 > ./configure: line 5005: ifort: command not found > configure:5007: $? = 127 > configure:5015: checking whether we are using the GNU Fortran 77 compiler > configure:5034: ifort -c conftest.F >&5 > ./configure: line 5035: ifort: command not found > configure:5040: $? = 127 > configure: failed program was: > | program main > | #ifndef __GNUC__ > | choke me > | #endif > | > | end > configure:5057: result: no > configure:5063: checking whether ifort accepts -g > configure:5080: ifort -c -g conftest.f >&5 > ./configure: line 5081: ifort: command not found > configure:5086: $? = 127 > configure: failed program was: > | program main > | > | end > configure:5102: result: no > configure:5146: setting up Fortran 90 > configure:5165: checking for Fortran flag to compile .f90 files > configure:5187: ifort -c conftest.f90 >&5 > ./configure: line 5188: ifort: command not found > configure:5193: $? = 127 > configure: failed program was: > | program main > | > | end > configure:5187: ifort -c -qsuffix=f=f90 conftest.f90 >&5 > ./configure: line 5188: ifort: command not found > configure:5193: $? = 127 > configure: failed program was: > | program main > | > | end > configure:5187: ifort -c -Tf conftest.f90 >&5 > ./configure: line 5188: ifort: command not found > configure:5193: $? = 127 > configure: failed program was: > | program main > | > | end > configure:5212: result: unknown > configure:5215: error: Fortran could not compile .f90 files > > ## ---------------- ## > ## Cache variables. ## > ## ---------------- ## > > ac_cv_build=x86_64-unknown-linux-gnu > ac_cv_c_compiler_gnu=yes > ac_cv_c_const=yes > ac_cv_env_CCC_set= > ac_cv_env_CCC_value= > ac_cv_env_CC_set= > ac_cv_env_CC_value= > ac_cv_env_CFLAGS_set= > ac_cv_env_CFLAGS_value= > ac_cv_env_CPPFLAGS_set= > ac_cv_env_CPPFLAGS_value= > ac_cv_env_CPP_set= > ac_cv_env_CPP_value= > ac_cv_env_CXXCPP_set= > ac_cv_env_CXXCPP_value= > ac_cv_env_CXXFLAGS_set= > ac_cv_env_CXXFLAGS_value= > ac_cv_env_CXX_set= > ac_cv_env_CXX_value= > ac_cv_env_F77_set= > ac_cv_env_F77_value= > ac_cv_env_FCFLAGS_set= > ac_cv_env_FCFLAGS_value= > ac_cv_env_FC_set=set > ac_cv_env_FC_value=ifort > ac_cv_env_FFLAGS_set= > ac_cv_env_FFLAGS_value= > ac_cv_env_LDFLAGS_set= > ac_cv_env_LDFLAGS_value= > ac_cv_env_LIBS_set= > ac_cv_env_LIBS_value= > ac_cv_env_build_alias_set= > ac_cv_env_build_alias_value= > ac_cv_env_host_alias_set= > ac_cv_env_host_alias_value= > ac_cv_env_target_alias_set= > ac_cv_env_target_alias_value= > ac_cv_f77_compiler_gnu=no > ac_cv_fc_compiler_gnu=no > ac_cv_fc_srcext_f90=unknown > ac_cv_host=x86_64-unknown-linux-gnu > ac_cv_objext=o > ac_cv_path_install='/usr/bin/install -c' > ac_cv_prog_AWK=gawk > ac_cv_prog_ac_ct_CC=cc > ac_cv_prog_cc_c89= > ac_cv_prog_cc_cc_c_o=yes > ac_cv_prog_cc_g=yes > ac_cv_prog_f77_g=no > ac_cv_prog_fc_g=no > ac_cv_prog_make_make_set=yes > am_cv_CC_dependencies_compiler_type=gcc3 > > ## ----------------- ## > ## Output variables. ## > ## ----------------- ## > > ACLOCAL='${SHELL} /home/model/Primoz/netcdf-3.6.2/missing --run aclocal-1.9' > ALLOCA='' > AMDEPBACKSLASH='\' > AMDEP_FALSE='#' > AMDEP_TRUE='' > AMTAR='${SHELL} /home/model/Primoz/netcdf-3.6.2/missing --run tar' > AR='' > AS='' > AUTOCONF='${SHELL} /home/model/Primoz/netcdf-3.6.2/missing --run autoconf' > AUTOHEADER='${SHELL} /home/model/Primoz/netcdf-3.6.2/missing --run autoheader' > AUTOMAKE='${SHELL} /home/model/Primoz/netcdf-3.6.2/missing --run automake-1.9' > AWK='gawk' > BUILD_CXX_FALSE='' > BUILD_CXX_TRUE='' > BUILD_C_FALSE='' > BUILD_C_TRUE='' > BUILD_DLL_FALSE='' > BUILD_DLL_TRUE='#' > BUILD_EXAMPLES_FALSE='#' > BUILD_EXAMPLES_TRUE='' > BUILD_F77_FALSE='' > BUILD_F77_TRUE='' > BUILD_F90_FALSE='' > BUILD_F90_TRUE='' > BUILD_SEPARATE_FORTRAN_FALSE='' > BUILD_SEPARATE_FORTRAN_TRUE='#' > BUILD_SHARED_FALSE='' > BUILD_SHARED_TRUE='#' > BUILD_UTILITIES_FALSE='#' > BUILD_UTILITIES_TRUE='' > BUILD_V2_FALSE='#' > BUILD_V2_TRUE='' > CC='cc' > CCDEPMODE='depmode=gcc3' > CFLAGS='-g -O2' > CPP='' > CPPFLAGS='' > CXX='' > CXXCPP='' > CXXDEPMODE='' > CXXFLAGS='' > CYGPATH_W='echo' > DEFS='' > DEPDIR='.deps' > DLLTOOL='' > DUMPBIN='' > ECHO_C='' > ECHO_N='-n' > ECHO_T='' > EGREP='' > EXEEXT='' > F77='ifort' > FC='ifort' > FCFLAGS='' > FCFLAGS_f90='' > FFLAGS='' > FGREP='' > FTPBINDIR='' > GREP='' > INSTALL_DATA='${INSTALL} -m 644' > INSTALL_DOCS_FALSE='' > INSTALL_DOCS_TRUE='#' > INSTALL_PROGRAM='${INSTALL}' > INSTALL_SCRIPT='${INSTALL}' > INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s' > LARGE_FILE_TESTS_FALSE='' > LARGE_FILE_TESTS_TRUE='#' > LD='' > LDFLAGS='' > LIBOBJS='' > LIBS='' > LIBTOOL='' > LN_S='' > LTLIBOBJS='' > MAKEINFO='${SHELL} /home/model/Primoz/netcdf-3.6.2/missing --run makeinfo' > MAKEWHATIS_CMD='' > MOD_FLAG='' > NETCDF_C_LIB='' > NM='' > NMFLAGS='' > OBJDUMP='' > OBJEXT='o' > PACKAGE='netcdf' > PACKAGE_BUGREPORT='address@hidden' > PACKAGE_NAME='netCDF' > PACKAGE_STRING='netCDF 3.6.2' > PACKAGE_TARNAME='netcdf' > PACKAGE_VERSION='3.6.2' > PATH_SEPARATOR=':' > RANLIB='' > SED='' > SET_MAKE='' > SHAREEXT_DYLIB_FALSE='' > SHAREEXT_DYLIB_TRUE='#' > SHAREEXT_SL_FALSE='' > SHAREEXT_SL_TRUE='#' > SHELL='/bin/sh' > STRIP='' > TEST_F77_FALSE='' > TEST_F77_TRUE='' > TEST_PARALLEL_FALSE='' > TEST_PARALLEL_TRUE='' > UPPER_CASE_MOD_FALSE='' > UPPER_CASE_MOD_TRUE='' > USE_FFIO_FALSE='' > USE_FFIO_TRUE='#' > USE_HDF5_DIR_FALSE='' > USE_HDF5_DIR_TRUE='#' > USE_NETCDF4_FALSE='' > USE_NETCDF4_TRUE='#' > USE_NETCDF_C_LIB_DIR_FALSE='' > USE_NETCDF_C_LIB_DIR_TRUE='#' > VERSION='3.6.2' > WHATIS='' > ac_ct_CC='cc' > ac_ct_CXX='' > ac_ct_DUMPBIN='' > ac_ct_F77='' > ac_ct_FC='' > am__fastdepCC_FALSE='#' > am__fastdepCC_TRUE='' > am__fastdepCXX_FALSE='' > am__fastdepCXX_TRUE='' > am__include='include' > am__leading_dot='.' > am__quote='' > am__tar='${AMTAR} chof - "$$tardir"' > am__untar='${AMTAR} xf -' > bindir='${exec_prefix}/bin' > build='x86_64-unknown-linux-gnu' > build_alias='' > build_cpu='x86_64' > build_os='linux-gnu' > build_vendor='unknown' > datadir='${datarootdir}' > datarootdir='${prefix}/share' > docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' > dvidir='${docdir}' > exec_prefix='NONE' > host='x86_64-unknown-linux-gnu' > host_alias='' > host_cpu='x86_64' > host_os='linux-gnu' > host_vendor='unknown' > htmldir='${docdir}' > includedir='${prefix}/include' > infodir='${datarootdir}/info' > install_sh='/home/model/Primoz/netcdf-3.6.2/install-sh' > libdir='${exec_prefix}/lib' > libexecdir='${exec_prefix}/libexec' > localedir='${datarootdir}/locale' > localstatedir='${prefix}/var' > lt_ECHO='echo' > mandir='${datarootdir}/man' > mkdir_p='mkdir -p --' > oldincludedir='/usr/include' > pdfdir='${docdir}' > prefix='/usr/local/netcdf' > prog='' > program_transform_name='s,x,x,' > psdir='${docdir}' > sbindir='${exec_prefix}/sbin' > sharedstatedir='${prefix}/com' > sysconfdir='${prefix}/etc' > target_alias='' > > ## ----------- ## > ## confdefs.h. ## > ## ----------- ## > > #define PACKAGE_NAME "netCDF" > #define PACKAGE_TARNAME "netcdf" > #define PACKAGE_VERSION "3.6.2" > #define PACKAGE_STRING "netCDF 3.6.2" > #define PACKAGE_BUGREPORT "address@hidden" > #define PACKAGE "netcdf" > #define VERSION "3.6.2" > #define USE_EXTREME_NUMBERS 1 > #define TEMP_LARGE $TEMP_LARGE > > configure: exit 1 > > Howdy! Looks like ifort is not in your path. Try putting its directory in your path or else setting FC to /full/path/to/ifort. Good luck! Ed Ticket Details =================== Ticket ID: IKB-287505 Department: Support netCDF Priority: Normal Status: Closed