NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Error msg related to CPPFLAGS while trying to install netcdf

Hi Armel

I guess with the new (post netcdf 4.1.3) NetCDF distributions,
you need to install the C bindings first (say, netcdf 4.3.0 or 4.3.1).
[In my humble opinion, this separation made the NetCDF
installation much more complicated.]
After you install NetCDF (C API/bindings)
you can install the NetCDF Fortran library, and you need to point
to the netCDF C library location also (with environment variables).

I would not try to use g77, which is ancient.
I suggest that you use gfortran (or install it with yum/apt-get),
along with gcc and g++.

I hope this helps,
Gus Correa

On 01/28/2014 02:15 PM, Kaptue Tchuente, Armel wrote:
Hi there,

I'm working on linux and I tried without success to install to install
the library netcdf.

Any thougths on how to fix the problem will be very much appreciated.

Below is what I did:

1) I downloaded and unzipped the file netcdf-fortran-4.2.tar.gz
2) I changed the current directory to netcdf-fortran-4.2
3) As explianed here
http://www.unidata.ucar.edu/software/netcdf/old_docs/INSTALL_pre_360.html#linux,


     CC=/usr/bin/c99
     CPPFLAGS=-Df2cFortran
     FC=/usr/bin/g77
     FFLAGS=-Wno-globals
     CXX=/usr/bin/g++

4) I runned configure ./configure

I'm getting the following error message "configure: error: netcdf.h
could not be found. Please set CPPFLAGS."

--
Armel


_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/



  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: