how to install netcdf-gfortran libraries?

Hi,

I'm moving from a Linux-Fedora environment to a Mac OS X 10.5.7 (Mac pro). I developped my own Fortran programs on Linux and compile them with ifort. I have installed the latest version of gcc (using fink) that includes a gfortran compiler, which is compatible with ifort as far as I understand.

I am unable to compile a program that calls Netcdf reading functions. In my linux program, I simply have an "include 'netcdf.inc'" statement in my code and I compile with the right options (-L... -lnetcdf -I...).

I did install the netcdf 3.6.2 libraries using fink. The problem is that I do not have the netcdf.inc.

I may have to rebuilt the netcdf libraries with gfortran but I do not know how to do that.

Any help would be greatly appreciate.

sbe

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

installing netcdf

First, make certain that you have installed the netcdf for gfortran. To check do so:

fink list netcdf

and you should see an i by netcdf-gfortran. If not do:

fink install netcdf-gfortran netcdf-gfortran-shlib

Once installed the netcdf.inc file will be in /sw/lib/netcdf-gfortran/include

HTH,

-Roy

NETCDF-GFORTRAN FINK

Hello..

Has for some reason, the possibility from Fink, to install the gfortran requirements for netcdf been removed?

because today I get this.....

>fink list netcdf

Information about 2520 packages read in 1 seconds.

netcdf 3.6.2-6 Interface & lib for array-based data access
netcdf-bin 3.6.2-6 Interface & lib for array-based data access
netcdf-shlibs 3.6.2-6 Interface & lib for array-based data access

>fink install netcdf-gfortran netcdf-gfortran-shlib

Information about 2520 packages read in 0 seconds.
Failed: no package found for specification 'netcdf-gfortran'!

How should I proceed to get the NETCDF capability for my Gfortran programs?

thank you in advance,

CKR

Not a systems person, just use the computer as a tool.

Vasa, Fi

installing netcdf-gfortran

If you go to:

http://pdb.finkproject.org/pdb/package.php/netcdf-gfortran

you can see that it is available for all recent versions of Fink. Have you run:

fink selfupdate recently (and if you don't have it configured to use rsync do fink selfupdate-rsync?
What do you get from:

fink --version

-rm