[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: Re: 20050923: netcdf java problem]
- Subject: Re: [Fwd: Re: 20050923: netcdf java problem]
- Date: Mon, 28 Nov 2005 10:47:58 -0700
Dov Kruger <address@hidden> writes:
> Ed,
>
>> Are you running under windows?
> I'm running under RedHat EE3.
>> >
>> > I assumed the following:
>> >
>> > ./config --prefix=/opt
>> > make
>> > make install
>> >
>> > and got two libraries:
>> > libnetcdf.a
>> > libnetcdf_cpp.a
>
>> That is correct. The libnetcdf.a file holds the fortran and C APIs.
>>
>> >
>> > I use gnu fortran:
>> >
>> > gfortran test.f -L/opt/lib -lnetcdf
>> >
>> > program test
>> > implicit none
>> > include 'netcdf.inc'
>> > integer:: status
>> > integer ncid
>> > status = nf_open('test.cdf', NF_WRITE, NCID)
>> > end
>> >
>> >
>> > and get a link error because _nf_open_ is not defined.
>>
>> Go to the nf_test directory of the netcdf distribution and run 'make
>> test'
>
> I have netcdf-4.0a
> There is no nf_test directory. There is an nc_test directory, but make
> test doesn't work. Any hints?
>
> Dov
I don't know what you are using but it should *NOT* be netcdf-4.0,
unless you are interested in an experimental release that cannot be
used for archive storage. (NetCDF-4.0 will come out in beta early next
year).
You need to get the 3.6.1p distribution from the netCDF homepage:
http://www.unidata.ucar.edu/software/netcdf/
Go to the "Getting Started" section, and downloaded the "gzipped tar
file."
Let me know if you can't find it.
Thanks!
Ed
--
Ed Hartnett -- address@hidden