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 Jervie! > root@jervie:/home/jervie/Documents/netcdf-4.0.1# export F90FLAGS="-fPIC" > root@jervie:/home/jervie/Documents/netcdf-4.0.1# ./configure > configure: netCDF 4.0.1 > checking build system type... i686-pc-linux-gnu > checking host system type... i686-pc-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > configure: checking user options > checking whether CXX is set to ''... no > checking whether FC is set to ''... no > checking whether F90 is set to ''... no > checking whether a NCIO_MINBLOCKSIZE was specified... 256 > checking whether this is a netCDF-4.x build... yes > checking whether extra valgrind tests should be run... no > configure: Processing NetCDF-4 options. > checking whether netCDF-4 is to be built... no > checking whether new netCDF-4 C++ API is to be built... no > checking whether HDF5 should do data conversions... no > checking whether extra example tests should be run... no > checking whether parallel IO tests should be run... no > checking whether a location for the HDF5 library was specified... > checking whether a location for the ZLIB library was specified... > checking whether a location for the SZLIB library was specified... > checking whether a default cache size for HDF5 was specified... 32000000 > checking whether a default cache maximum number of elements for HDF5 was > specified... 1000 > checking whether a default cache preemption for HDF5 was specified... 0.75 > checking whether netCDF-4 logging is enabled... no > checking whether DAP client is to be built... no > checking whether dap remote testing should be enabled... no > checking whether netCDF extra tests should be run (developers only)... no > checking whether documentation is to be installed... no > checking whether Fortran compiler(s) should be tested during configure... yes > checking whether FFIO will be used... no > checking whether to skip C++, F77, or F90 APIs if compiler is broken... yes > checking whether only the C library is desired... no > checking whether examples should be built... yes > checking whether F77 API is desired... yes > checking whether F90 API is desired... yes > checking whether fortran type sizes should be checked... yes > checking whether C API is desired... yes > checking where to get netCDF C-only library for separate fortran libraries... > checking whether CXX API is desired... yes > checking whether v2 netCDF API should be built... yes > checking whether the ncgen/ncdump should be built... yes > checking whether large file (> 2GB) tests should be run... no > checking whether benchmaks should be run (experimental)... no > checking whether extreme numbers should be used in tests... yes > checking where to put large temp files if large file tests are run... . > checking whether a win32 DLL is desired... no > checking whether separate fortran libs are desired... no > configure: finding C compiler > checking for xlc... no > checking for cc... cc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether cc accepts -g... yes > checking for cc option to accept ISO C89... none needed > checking for style of include used by make... GNU > checking dependency style of cc... gcc3 > checking whether cc understands -c and -o together... yes > checking for an ANSI C-conforming const... yes > configure: finding Fortran compiler (will not be used if Fortran API is not > desired) > checking whether we are using the GNU Fortran compiler... no > checking whether g90 accepts -g... no > checking whether we are using the GNU Fortran 77 compiler... no > checking whether g90 accepts -g... no > configure: setting up Fortran 90 > checking for Fortran flag to compile .f90 files... unknown > configure: error: Fortran could not compile .f90 files It looks like configure cannot find a fortran compiler - have you specified the location f your fortran compiler with the FC environmental variable? Also, if you want to use -fPIC, make sure to use the FCFLAGS variable to set that, as configure won't pickup F90FLAGS. For a listing of variables that can be used, check out: http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Environment.html#Environment Cheers! Sean > > > > > ________________________________ > From: Unidata netCDF Support <address@hidden> > To: address@hidden > Sent: Saturday, July 30, 2011 12:58 AM > Subject: [netCDF #KRY-638822]: error in configuring netcdf > > Greetings Jervie! > > Would you please send your configure and make logs? > > The configure log should live in /home/jervie/Documents/netcdf-4.1.3/, and to > get the make log, please do: > > make >& make.log > > Thanks! > > Sean > > > Good day > > > > I? configuring netcdf-4.1.3 in ubuntu and found this error > > Making install in include > > make[1]: Entering directory > > `/home/jervie/Documents/netcdf-4.1.3/include' > > make[2]: Entering directory > > `/home/jervie/Documents/netcdf-4.1.3/include' > > make[2]: Nothing to be done for `install-exec-am'. > > test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include" > > /usr/bin/install -c -m 644 netcdf.h '/usr/local/include' > > /usr/bin/install: cannot create regular file > > `/usr/local/include/netcdf.h': Permission denied > > make[2]: *** [install-includeHEADERS] Error 1 > > make[2]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3/include' > > make[1]: *** [install-am] Error 2 > > make[1]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3/include' > > make: *** [install-recursive] Error 1 > > jervie@jervie:~/Documents/netcdf-4.1.3$ make > > make all-recursive > > make[1]: Entering directory `/home/jervie/Documents/netcdf-4.1.3' > > Making all in include > > make[2]: Entering directory > > `/home/jervie/Documents/netcdf-4.1.3/include' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3/include' > > Making all in h5_test > > make[2]: Entering directory > > `/home/jervie/Documents/netcdf-4.1.3/h5_test' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3/h5_test' > > Making all in libdispatch > > make[2]: Entering directory > > `/home/jervie/Documents/netcdf-4.1.3/libdispatch' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory > > `/home/jervie/Documents/netcdf-4.1.3/libdispatch' > > Making all in libsrc > > make[2]: Entering directory `/home/jervie/Documents/netcdf-4.1.3/libsrc' > > make[2]: Nothing to be done for `all'. > > make[2]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3/libsrc' > > Making all in libsrc4 > > make[2]: Entering directory > > `/home/jervie/Documents/netcdf-4.1.3/libsrc4' > > /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > > -I.. -I../fortran -I../include -g -O2 -MT libnetcdf4_la-nc4file.lo > > -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo -c -o > > libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo './'`nc4file.c > > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../fortran > > -I../include -g -O2 -MT libnetcdf4_la-nc4file.lo -MD -MP -MF > > .deps/libnetcdf4_la-nc4file.Tpo -c nc4file.c -fPIC -DPIC -o > > .libs/libnetcdf4_la-nc4file.o > > nc4file.c: In function 'nc4_create_file': > > nc4file.c:272: error: 'H5F_LIBVER_18' undeclared (first use in this > > function) > > nc4file.c:272: error: (Each undeclared identifier is reported only once > > nc4file.c:272: error: for each function it appears in.) > > make[2]: *** [libnetcdf4_la-nc4file.lo] Error 1 > > make[2]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3/libsrc4' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/jervie/Documents/netcdf-4.1.3' > > make: *** [all] Error 2 > > > > pls do help me to fix it up. im doing this and installing wrf about 2months > > and i? dying and exhaust for too much problem I encountered. pls I need > > your soonest reply this is for my thesis... God Bless and Thanks in advance. > > > > Jervie M. Oliveros > > MS Physics > > De La Salle University - Manila Philippines > > > > > > > Ticket Details > =================== > Ticket ID: KRY-638822 > Department: Support netCDF > Priority: Normal > Status: Open > Ticket Details =================== Ticket ID: KRY-638822 Department: Support netCDF Priority: Normal Status: Open