NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] NetCDF installation issues

Try looking in config.log for the full error from the linker. It could be a 32/64 bit mismatch between the C and gfortran defaults. Sounds like FVCOM definitely needs the fortran interface module (netcdf.mod).

-- Ted

On Mar 3, 2010, at 7:17 AM, Jenny Not wrote:

Hi,

I'm having trouble installing/using NetCDF, and having looked at the website I hope I've picked the right mailing list. Sorry if I'm sending this in error.

I have a macbook pro and I'm new to compiling. I am trying to install NetCDF to use with a modelling program called FVCOM, which I also have to compile. I had compiled fvcom fine but then realised I needed NetCDF libraries installed. On my first attempt to install NetCDF, 'configure' produced this error:

checking if Fortran "byte" is C "signed char"...
configure: error: Could not link conftestf.o and conftest.o


and after searching online found that they suggested using this line of code instead, if you didn't need fortran installed.

FC= ./configure

as I have already got gfortran installed I thought that would be ok. It seemed to work, as after this was typed it compiled and installed fine. However, when I tried to compile FVCOM while linking to these libraries, it came up with this error:

Can't open module file 'netcdf.mod' for reading at (1): No such file or directory

And there is indeed no netcdf.mod file in the 'include' directory. I'm not sure where to go from here... as it seems to be a NetCDF issue at this point I thought here was the best place. I read in an archive something about telling NetCDF about the existing gfortran libraries when it configures - but I have no idea how to do that. Does anybody know how I fix this?

Many thanks,

Jenny
_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: