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

20040107: Problems installing netcdf on Mac OSX



Don,

>Date: Wed, 07 Jan 2004 09:30:27 -0500
>From: Don Spong <address@hidden>
>Organization: UCAR/Unidata
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20040105: Problems installing netcdf on Mac OSX
>Keywords: 200401050423.i054NWp2005410

The above message contained the following:

> Thanks for the suggestions.  After trying what you suggested, I think 
> the make step got a little further along, but still eventually ran 
> into errors.  Following the requoted e-mail below I have pasted in 
> the output/errors from configure and make.  Let me know if you need 
> futher information and what my next step should be.
> 
> -Thanks, Don
...
> Making `all' in directory /Users/spongda/Desktop/netcdf-3-1.5.0/src/cxx
> 
> /usr/bin/c++ -c -O -I../libsrc -I.  -DIBMR2Fortran netcdf.cpp
> In file included from netcdfcpp.h:16,
>                   from netcdf.cpp:12:
> ncvalues.h:17:26: strstream.h: No such file or directory
> In file included from netcdf.cpp:12:
> netcdfcpp.h:157: warning: friend declaration requires class-key, i.e. `friend
>     class NcFile'
> netcdfcpp.h:360: warning: friend declaration requires class-key, i.e. `friend
>     class NcFile'
> netcdfcpp.h:391: warning: friend declaration requires class-key, i.e. `friend
>     class NcFile'
> make[2]: *** [netcdf.o] Error 1
> make[1]: *** [subdir_target] Error 1
> make: *** [cxx/all] Error 2

Everything up to the above point looked good.

First things first.  Do you need a C++ interface to the netCDF package?
If not, they you can simply do a "make distclean" and define the
environment variable CXX to be the empty string before (re)executing the
"configure" script.

Otherwise, if you want the C++ interface, then the solution is to use
the latest "beta" release at

    ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-beta.tar.Z

(which is a symbolic link to netcdf-3.5.1-beta13.tar.Z).  Don't let the
"beta" fool you, this is a better release than 3.5.0.

> Donald A. Spong, Fusion Energy Theory, ORNL
> **NOTE ADDRESS CHANGE**: P. O. Box 2008, Bldg. 5700, Room R-F312
> Oak Ridge, Tennessee  37831-6169
> Phone: (865) 574-1304   FAX: (865) 576-7926                        
> E-mail: address@hidden
> web page: http://www.ornl.gov/fed/Theory/stci/stellarator_theory.html

Regards,
Steve Emmerson