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

Re: R: 20010830: installation of the netCDF cygwin version 20



>To: <address@hidden>
>From: "Daniela Meloni" <address@hidden>
>Subject: Re: 20010830: installation of the netCDF cygwin version 20
>Organization: UCAR/Unidata
>Keywords: 200108301431.f7UEV8129876

Daniela,

> thank you for your helpful suggestion. After it, I could finish the "make
> test" successfully. I attach the file test.nc you are interested  in.
> Unfortunately the "make install" does not work.
> The file install.log containes the following line:
> 
> Making `install' in directory /cygnus/cygwin-b20/netcdf-3.5.0/src/libsrc
> 
> and the error message is:
> 
> make[2]: *** No rule to make target `/cygnus/cygwin-b20/netcdf-3.5.0/lib',
> needed by `/cygnus/cygwin-b20/netcdf-3.5.0/lib/libnetcdf.a'.  Stop.
> make[1]: *** [subdir_target] Error 1
> make: *** [libsrc/install] Error 2
> 
> For what I see, my '/cygnus/cygwin-b20/netcdf-3.5.0/lib/' directory is
> empty, while the file libnetcdf.a is in the
> '/cygnus/cygwin-b20/netcdf-3.5.0/libsrc/' directory.
> Moreover, all the subdirectories of /netcdf-3.5.0/lib/ are empty. Is it
> right?

I don't know exactly why this "make install" step fails on cygwin, but
it may have something to do with a missing "src/" directory in your
source hierarchy, because from the above, I would have thought that
libnetcdf.a was built in '/cygnus/cygwin-b20/netcdf-3.5.0/src/libsrc/'
rather than in '/cygnus/cygwin-b20/netcdf-3.5.0/libsrc/'.

But it doesn't matter, you can just copy the library, libnetcdf.a, to
the destination directory where you want it installed, presumably
/cygnus/cygwin-b20/netcdf-3.5.0/lib/.  There are no subdirectories in
that directory.  For the C++ library, you may have to do the same
thing, just copying cxx/libnetcdf_c++.a to the same destination
directory where libnetcdf.a is installed.  You'll also need to copy
the include files

 /cygnus/cygwin-b20/netcdf-3.5.0/libsrc/netcdf.h
 /cygnus/cygwin-b20/netcdf-3.5.0/fortran/netcdf.inc
 /cygnus/cygwin-b20/netcdf-3.5.0/cxx/ncvalues.h
 /cygnus/cygwin-b20/netcdf-3.5.0/cxx/netcdfcpp.h
 /cygnus/cygwin-b20/netcdf-3.5.0/f90/netcdf.mod

to a destination include/ directory, presumably

 /cygnus/cygwin-b20/netcdf-3.5.0/include/

Finally, if you will use the utility programs "ncdump.exe" and
"ncgen.exe", you'll need to copy those from their ncdump/ and ncgen/
directories to wherever its convenient to have these programs.  One
possibility is /cygnus/cygwin-b20/netcdf-3.5.0/bin/, but there may be
a more convenient place that is already on your execution path.

The only other thing the "make install" does is install the reference
documentation file ncgen.1, ncdump.1, netcdf.3, netcdf.3f, and
netcdf.3f90 in places where the "man" command will find them.  I don't
know if cygwin even has a "man" command that works on these files ...

Just remember if you will use the netcdf library to specify the lib/
and include/ directories where you installed the libraries and header
files when you compile programs that need them.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu