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

[netCDF #FVK-122895]: Problem with installing netCDF.



> I did 'make uninstall' to delete the previous netcdf, and installed the 
> MacPorts,
> then did the 'sudo port install netcdf-fortran'. There was no error reported, 
> but still
> I can't find the netcdf.mod and type sizes.mod under /usr/local/
> 
> Any idea?
> Thanks, Yanshi.

MacPorts typically installs things under /opt/local/, so I suspect netcdf.mod 
is in
/opt/local/include/.  Rather than guessing at the directory and looking with 
the "find"
command, I use the "Spotlight" tool on OSX, typing netcdf.mod into the search 
line.

Then I can hold down the option and command keys while mousing over the 
drop-down list
of "netcdf.mod" files found, and the exact location appears at the bottom of 
the 
associated pop-up windows.

I'm not sure about "sizes.mod".  It may not be needed anymore.

--Russ

> On Mar 24, 2013, at 4:22 PM, Unidata netCDF Support <address@hidden>
> wrote:
> 
> > Hi Yanshi,
> >
> >> I am trying to install netCDF on my MACOS X 10.8.6.
> >> I have installed the netCDF-4.2.1.1 without error by
> >>
> >> ./configure --disable-netcdf-4
> >> make
> >> make check
> >> make install
> >>
> >> However, I could not find the the netcdf.mod and typesizes.mod under
> >> /usr/local/
> >
> > The netCDF-4.2.1.1 package only installs the C library.  To install the 
> > Fortran netCDF libaries,
> > which have been in a separate distribution since C version 4.1.3, you need 
> > to download the
> > Fortran distribution (either the stable release or the beta test) from here:
> >
> >  http://www.unidata.ucar.edu/downloads/netcdf/netcdf-fortran/
> >
> > and follow these instructions:
> >
> >  
> > http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-fortran-install.html
> >
> > Alternatively, you could use the MacPorts system (see www.macports.org) and 
> > have the full netCDF-4
> > library installed, including netCDF-Fortran, using
> >
> >  sudo port install netcdf-fortran
> >
> > Note, that may take a while, as it may also download and install compatible 
> > versions of gcc and
> > gfortran ...
> >
> > --Russ
> >
> >> So, I continued to install netCDF-fortran-4.2, and ./configure returns
> >> â...
> >> checking for Fortran "byte"... yes
> >> checking for Fortran "integer*2"... yes
> >> checking if Fortran "byte" is C "signed char"... configure: error: Could 
> >> not link conftestf.o and conftest.o
> >>
> >> Any idea how to fix this?
> >> Thank you so much!
> >> Yanshi.
> >>
> >>
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                      http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: FVK-122895
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> 
> 
> 

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



Ticket Details
===================
Ticket ID: FVK-122895
Department: Support netCDF
Priority: Normal
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.