[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #WWE-913739]: Problem in configuration of netCDF-4.1.1 in Ubuntu 10.04 LTS Linux system

> Hello.
> I'm now trying to install netCDF-4.1.1 in Ubuntu 10.04 LTS Linux operating
> system. The package of the compiler used (Intel Fortran Compiler 11.1.073)
> is located in the following directory:
> /home/jesc/desktop/CMAQ/Intel_Fortran_Compiler/Compiler/11.1/073.
> Firstly,I have run the following command in order to set the path of the
> compiler:
> $ source
> /home/jesc/desktop/CMAQ/Intel_Fortran_Compiler/Compiler/11.1/073/bin/ia32/ifortvars_ia32.sh
> Next, I have set environment variables as follows:
> $ export CC=gcc
> $ export CPPFLAGS='-DNDEBUG -DpgiFortran'
> $ export CFLAGS='-g -O'
> $ export FC=ifort
> $ export F77=ifort
> $ export F90=ifort
> $ export FFLAGS='-g -O2 -mp -recursive'
> $ export CXX=g++
> Then, I have run configure script as follows:
> $ ./configure --prefix=/home/jesc/desktop/CMAQ
> However, the configuration failed, with the error message in the end of the
> output as follows:
> configure: error: Fortran could not compile .f90 files
> Then, I have modified and run configure script as follows:
> $ ./configure --prefix=/home/jesc/desktop/CMAQ --disable-f90
> But, the configuration also failed, with the full output as follows:
> configure: netCDF 4.1.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

Howdy Tetsuro!

The netCDF build actually contains two fortran libraries, one for F90, one for 
F77. If you don't want either, you can use --disable-fortran.

The Fortran libraries are known to work with ifort. Try the following:

CC=gcc FC=ifort CXX=g++ ./configure --prefix=/home/jesc/desktop/CMAQ 
--disable-dap --disable-netcdf-4

If this works, then take out the --disable-dap for the opendap client, and 
--disable-netcdf-4 for the netCDF-4 enhanced library features.

Please let me know if this works for you.



Ticket Details
Ticket ID: WWE-913739
Department: Support netCDF
Priority: Normal
Status: Closed

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.