[MITgcm-support] mnc package

Nicolas Wienders wienders at ocean.fsu.edu
Mon Jun 13 18:42:42 EDT 2005


>Basically, you just need to build and install netcdf (the headers and
>libraries) for your compiler.  The latest version of netcdf is available
>at:
>
>  http://my.unidata.ucar.edu/content/software/netcdf/index.html
>  ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.0-p1.tar.gz   <===
>
>and some specific build instruction for your platform (which I think is
>a Mac with the IBM xlf compiler, right?) are available at:
>
>  http://my.unidata.ucar.edu/content/software/netcdf/docs/other-
>builds.html#macosx-xlf
>  
>

The installation went well, and the script specifies indeed the correct 
options
for the compiler we are using ( CPPFLAGS=-DIBMR2Fortran ...etc....).

I have specified the netcdf libraries to use in the OPT file
(LIBS='-L/usr/local/netcdf/lib -lnetcdf') but it still doesn't work.

Here is a part of what i get when genmake2 compiling:

===  Checking system libraries  ===
  Do we have the system() command using /opt/ibmcmp/xlf/8.1/bin/f77...  no
  Do we have the fdate() command using /opt/ibmcmp/xlf/8.1/bin/f77...  no
  Do we have the etime() command using /opt/ibmcmp/xlf/8.1/bin/f77...  no
  Can we call simple C routines (here, "cloc()") using 
/opt/ibmcmp/xlf/8.1/bin/f77...  no
  Can we use stat() through C calls...  no
  Can we create NetCDF-enabled binaries...  no

===  Setting defaults  ===
  Adding MODS directories:   ../code
  Making source files in eesupp from templates
  Making source files in exch2 from  templates

===  Determining package settings  ===
  getting package dependency info from  ../../../pkg/pkg_depend
  checking default package list:
    using PDEFAULT="../code/packages.conf"
    before group expansion packages are:  gfd mnc
    replacing "gfd" with:   mom_common mom_fluxform mom_vecinv 
generic_advdiff debug mdsio rw monitor
    after group expansion packages are:   mom_common mom_fluxform 
mom_vecinv generic_advdiff debug mdsio rw monitor mnc
  applying DISABLE settings
  applying ENABLE settings
    packages are:   debug generic_advdiff mdsio mnc mom_common 
mom_fluxform mom_vecinv monitor rw

*********************************************************************
WARNING: the "mnc" package was enabled but tests failed to compile
  NetCDF applications.  Please check that:

  1) NetCDF is correctly installed for this compiler and
  2) the LIBS variable (within the "optfile") specifies the correct
       NetCDF library to link against.

  Due to this failure, the "mnc" package is now DISABLED.
*********************************************************************

I don't understand what is wrong.






-- 

Nicolas Wienders                 (850) 644-1987 (office)
Oceanography - OSB415              294-3542 (cell)
Florida State University               644-2581 (fax)
Tallahassee, FL - 32306    wienders at ocean.fsu.edu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20050613/698108f0/attachment.htm>


More information about the MITgcm-support mailing list