On Friday 13 January 2006 10:23 am, Ed Hartnett wrote:
> You certainly will need netcdf.inc if you want to use the Fortran API.
>
> I am not familiar with the debian distribution package. You could get
> the latest netCDF from the web site, and it will (most probably) build
> for you without problems.
>
> I would wonder if the netcdf.inc file is missing, is something else
> missing?
Here's a long-winded solution that ends up giving you a debian
distribution package for netcdf with fortran support. Worked
on my kubuntu laptop last night, anyway.
1. In your home directory, create a "rpm" directory, and populate it
with subdirectories BUILD, RPMS/x86_64, SOURCES, SPECS, SRPMS,
and tmp
2. Create the file ${HOME}/.rpmmacros. It should look something
like
%_topdir /path/to/rpm
%_tmppath /path/to/rpm/tmp
%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
where "/path/to" is replaced by what you did in step 1.
And you might not need that last line (having trouble
remembering if I had to put in that last line or not,
it sucks to get old...)
3. Get a netcdf source rpm. I used one at
http://monkeyrpms.net/fc2-i386/html/netcdf.html.
4. Install the source rpm with the command
rpm -ivh netcdf-3.5.1-1.mr.src.rpm
5. Rebuild the rpm by cd-ing into /path/to/rpm/SPECS and issuing
the command
rpmbuild -bb netcdf.spec
If you use another source rpm, you should watch the build process
to make sure that fortran support is actually being compiled. If
it isn't, you'll have to edit the spec file.
The rebuild process should result in an rpm being deposited in
/path/to/rpm/RPMS/x86_64
6. Convert the rpm into a debian package with the "alien"
command.
alien netcdf-3.5.1-1.mr.x86_64.rpm
7. Install the debian package with dpkg
dpkg -i "path-to-netcdf-deb"
netcdf.inc should then be in /usr/include
--
John Evans: IMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521
ph: 732-932-3435