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

[netCDF #XMC-359091]: Missing netcdf.mod



Hello,

It appears that the core C library, libnetcdf, is not installed *or* the 
nc-config utility is not on the standard path.  You will need to either install 
the C library (which the Fortran library relies upon), or update your path to 
include the location of the nc-config utility.

I hope this helps!

-Ward

> Hi,
> 
> I am building my case on CESM, but this command ( ./mycase1.build) is
> giving following error:
> 
> 
> gmake: /usr/include//usr/bin/nc-config: Command not found
> mpif90  -c -I.
> -I/home/geo/cesm1_2_2/scripts/mycase1/exe/gnu/mpich/nodebug/nothreads/include
> -I/home/geo/cesm1_2_2/scripts/mycase1/exe/gnu/mpich/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share
> -I/usr/include//include -I/usr/local/bin/mpich-3.2.1//include
> -I/usr/local/lib//include
> -I/home/geo/cesm1_2_2/scripts/mycase1/exe/gnu/mpich/nodebug/nothreads/include
> -I/home/geo/cesm1_2_2/models/csm_share/shr -I.
> -I/home/geo/cesm1_2_2/scripts/mycase1/SourceMods/src.share
> -I/home/geo/cesm1_2_2/models/drv/shr
> -I/home/geo/cesm1_2_2/models/dead_share
> -I/home/geo/cesm1_2_2/models/csm_share/shr
> -I/home/geo/cesm1_2_2/models/utils/esmf_wrf_timemgr
> -I/home/geo/cesm1_2_2/scripts/mycase1/exe/lib/include  -O
> -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none
> -fno-range-check -lnetcdf -lnetcdff -I/usr/local/include -L/usr/local/lib64
> -L/usr/local/lib -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1
> -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1
> -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_ROF=1 -DLinux  -DNDEBUG
> -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLinux -DCPRGNU
> -ffree-form   /home/geo/cesm1_2_2/models/csm_share/shr/shr_stream_mod.F90
> /home/geo/cesm1_2_2/models/csm_share/shr/shr_stream_mod.F90:1439.13:
> 
> use netcdf
> 1
> 
> *Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No
> such file or directorygmake: *** [shr_stream_mod.o] Error 1*
> gmake  complib -j 1 MODEL=csm_share COMPLIB=libcsm_share.a USER_CPPDEFS="
> -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1
> -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_WAV=1
> -DNUM_COMP_INST_ROF=1" -f
> /home/geo/cesm1_2_2/scripts/mycase1/Tools/Makefile  returned non-zero exit
> status 2
> 
> the missing file (netcdf.mod) is already in my */usr/local/include* but I
> cannot figure out why it is not able to read it, I will also attach my
> macros file. Could you please help me to find out what is going wrong and
> how it can be solved?
> 
> 
> Best Regards.
> Bahareh.
> 
> 


Ticket Details
===================
Ticket ID: XMC-359091
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.