Dear all,
I am new in ROMS, I have a problem in the installation of ROMS, i have got errors massage like this:
-L/usr/local/lib -lnetcdf
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(close_io.o):close_io.f90:(.text+0x1030): undefined reference to `__netcdf_MOD_nf90_strerror'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(close_io.o):close_io.f90:(.text+0x1030): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_strerror'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fwrite3d.o):nf_fwrite3d.f90:(.text+0x58a): undefined reference to `__netcdf_MOD_nf90_put_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fwrite3d.o):nf_fwrite3d.f90:(.text+0x58a): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_put_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fwrite2d.o):nf_fwrite2d.f90:(.text+0x4a0): undefined reference to `__netcdf_MOD_nf90_put_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fwrite2d.o):nf_fwrite2d.f90:(.text+0x4a0): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_put_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(lbc.o):lbc.f90:(.text+0x2192): undefined reference to `__netcdf_MOD_nf90_get_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(lbc.o):lbc.f90:(.text+0x2192): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_get_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(lbc.o):lbc.f90:(.text+0x2ff7): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(lbc.o):lbc.f90:(.text+0x2ff7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fread3d.o):nf_fread3d.f90:(.text+0x9e6): undefined reference to `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fread3d.o):nf_fread3d.f90:(.text+0x9e6): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fread2d.o):nf_fread2d.f90:(.text+0x99e): undefined reference to `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(nf_fread2d.o):nf_fread2d.f90:(.text+0x99e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_dim.o):def_dim.f90:(.text+0x71): undefined reference to `__netcdf_MOD_nf90_def_dim'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_dim.o):def_dim.f90:(.text+0x71): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_def_dim'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x20d): undefined reference to `__netcdf_MOD_nf90_def_var_manydims'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x20d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_def_var_manydims'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x27e): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x27e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2e0): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2e0): additional relocation overflows omitted from the output
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x374): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x412): undefined reference to `__netcdf_MOD_nf90_put_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x4db): undefined reference to `__netcdf_MOD_nf90_put_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x5c9): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x6de): undefined reference to `__netcdf_MOD_nf90_put_att_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x763): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x7c9): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x82b): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x88d): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x8f8): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x95e): more undefined references to `__netcdf_MOD_nf90_put_att_text' follow
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xa07): undefined reference to `__netcdf_MOD_nf90_put_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xad8): undefined reference to `__netcdf_MOD_nf90_put_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xbad): undefined reference to `__netcdf_MOD_nf90_put_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xc3c): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xc9e): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xe37): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xea1): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0xf9f): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x20d6): undefined reference to `__netcdf_MOD_nf90_def_var_scalar'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x22e9): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x234a): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x23b1): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x241a): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x24a9): undefined reference to `__netcdf_MOD_nf90_put_att_fourbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x252a): undefined reference to `__netcdf_MOD_nf90_put_att_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x255c): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x29be): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2a58): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2c95): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2d0a): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2d71): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x2ddf): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x31c8): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_var.o):def_var.f90:(.text+0x32be): undefined reference to `__netcdf_MOD_nf90_put_att_one_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_info.o):def_info.f90:(.text+0xecc9): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_info.o):def_info.f90:(.text+0xedb1): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_info.o):def_info.f90:(.text+0xee10): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_info.o):def_info.f90:(.text+0xee6f): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_info.o):def_info.f90:(.text+0xeece): undefined reference to `__netcdf_MOD_nf90_put_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a(def_info.o):def_info.f90:(.text+0xef2d): more undefined references to `__netcdf_MOD_nf90_put_att_text' follow
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x57): undefined reference to `__netcdf_MOD_nf90_open'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x14e): undefined reference to `__netcdf_MOD_nf90_open'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x284): undefined reference to `__netcdf_MOD_nf90_close'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x3a7): undefined reference to `__netcdf_MOD_nf90_get_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x50d): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x533): undefined reference to `__netcdf_MOD_nf90_get_var_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x72b): undefined reference to `__netcdf_MOD_nf90_sync'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x82b): undefined reference to `__netcdf_MOD_nf90_redef'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x96c): undefined reference to `__netcdf_MOD_nf90_enddef'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xab8): undefined reference to `__netcdf_MOD_nf90_create'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xfd7): undefined reference to `__netcdf_MOD_nf90_put_var_1d_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1193): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1537): undefined reference to `__netcdf_MOD_nf90_put_var_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x168b): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1c51): undefined reference to `__netcdf_MOD_nf90_put_var_2d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1e64): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x2576): undefined reference to `__netcdf_MOD_nf90_put_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x2733): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x2b96): undefined reference to `__netcdf_MOD_nf90_put_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x2dd9): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x2f33): undefined reference to `__netcdf_MOD_nf90_put_var_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x3392): undefined reference to `__netcdf_MOD_nf90_put_var_2d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x3569): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x3aa7): undefined reference to `__netcdf_MOD_nf90_put_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x3c69): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x40e0): undefined reference to `__netcdf_MOD_nf90_put_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x4329): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x4483): undefined reference to `__netcdf_MOD_nf90_put_var_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x49a3): undefined reference to `__netcdf_MOD_nf90_put_var_4d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x4b79): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x5174): undefined reference to `__netcdf_MOD_nf90_put_var_3d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x533c): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x5902): undefined reference to `__netcdf_MOD_nf90_put_var_2d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x5ad9): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x6017): undefined reference to `__netcdf_MOD_nf90_put_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x61d9): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x6654): undefined reference to `__netcdf_MOD_nf90_put_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x6899): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x69f3): undefined reference to `__netcdf_MOD_nf90_put_var_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x6c21): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x6d7f): undefined reference to `__netcdf_MOD_nf90_get_var_1d_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x6f93): undefined reference to `__netcdf_MOD_nf90_get_var_1d_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x7324): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x741d): undefined reference to `__netcdf_MOD_nf90_get_var_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x783c): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x79b4): undefined reference to `__netcdf_MOD_nf90_get_var_2d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x7f51): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x8098): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x828c): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x8626): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x875d): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x88f2): undefined reference to `__netcdf_MOD_nf90_get_var_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x8c8b): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x8cd4): undefined reference to `__netcdf_MOD_nf90_inquire_variable'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x8e30): undefined reference to `__netcdf_MOD_nf90_get_var_1d_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x924a): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x9560): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x95ed): undefined reference to `__netcdf_MOD_nf90_get_var_1d_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x9856): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x989a): undefined reference to `__netcdf_MOD_nf90_inquire_variable'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x99a9): undefined reference to `__netcdf_MOD_nf90_get_var_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x9d68): undefined reference to `__netcdf_MOD_nf90_get_var_1d_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x9e82): undefined reference to `__netcdf_MOD_nf90_get_var_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xa0a9): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xa1ee): undefined reference to `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xa42d): undefined reference to `__netcdf_MOD_nf90_get_var_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xa88a): undefined reference to `__netcdf_MOD_nf90_inquire_variable'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xa927): undefined reference to `__netcdf_MOD_nf90_inq_attname'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xa9b8): undefined reference to `__netcdf_MOD_nf90_get_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xbe1f): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xc003): undefined reference to `__netcdf_MOD_nf90_get_var_4d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xc296): undefined reference to `__netcdf_MOD_nf90_get_var_4d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xd6e2): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xd897): undefined reference to `__netcdf_MOD_nf90_get_var_3d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xda7a): undefined reference to `__netcdf_MOD_nf90_get_var_3d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xe58f): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xe71d): undefined reference to `__netcdf_MOD_nf90_get_var_2d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xec79): undefined reference to `__netcdf_MOD_nf90_get_var_2d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xf697): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xf7ef): undefined reference to `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0xfcf4): undefined reference to `__netcdf_MOD_nf90_get_var_1d_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x10033): undefined reference to `__netcdf_MOD_nf90_inq_varid'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x10597): undefined reference to `__netcdf_MOD_nf90_inquire_dimension'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x10719): undefined reference to `__netcdf_MOD_nf90_inquire'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1086d): undefined reference to `__netcdf_MOD_nf90_inquire_variable'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1091e): undefined reference to `__netcdf_MOD_nf90_inq_attname'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x10f0a): undefined reference to `__netcdf_MOD_nf90_inq_attname'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x10f6a): undefined reference to `__netcdf_MOD_nf90_inquire_attribute'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x11016): undefined reference to `__netcdf_MOD_nf90_get_att_one_eightbytereal'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x11212): undefined reference to `__netcdf_MOD_nf90_get_att_text'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x11549): undefined reference to `__netcdf_MOD_nf90_get_att_one_fourbyteint'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x1233d): undefined reference to `__netcdf_MOD_nf90_inquire'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x124f4): undefined reference to `__netcdf_MOD_nf90_inquire_variable'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x125bb): undefined reference to `__netcdf_MOD_nf90_inq_attname'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x12dad): undefined reference to `__netcdf_MOD_nf90_inquire'
/home/LENOVO/roms/projects/Upwelling/Build/libMODS.a(mod_netcdf.o):mod_netcdf.f90:(.text+0x12e66): undefined reference to `__netcdf_MOD_nf90_inquire_dimension'
collect2: error: ld returned 1 exit status
Master/Module.mk:22: recipe for target '/home/LENOVO/roms/projects/Upwelling/oceanS.exe' failed
make: *** [/home/LENOVO/roms/projects/Upwelling/oceanS.exe] Error 1
I have no idea how to fix this, can anyone help?
Thanks a lot
Problems in ROMS installation
-
- Posts: 5
- Joined: Thu Jan 08, 2015 11:16 pm
- Location: Institute of Atmospheric Physics, Chinese Academy
Re: Problems in ROMS installation
please set the NETCDF path in the build.bash.
you can find this code " if [ -n "${USE_NETCDF4:+1}" ]; then....."
and set the following path
export NC_CONFIG="your netcdf path "/bin/nc-config
export NETCDF_INCDIR="yout netcdf path "/include
you can find this code " if [ -n "${USE_NETCDF4:+1}" ]; then....."
and set the following path
export NC_CONFIG="your netcdf path "/bin/nc-config
export NETCDF_INCDIR="yout netcdf path "/include
Re: Problems in ROMS installation
I updated the FAQ entry on this topic. Let me know if it is unclear.
Re: Problems in ROMS installation
Thank you for all the replies..
But for me it is unclear what i must do, sorry I am really new in this thing.
I still could not solve the problems, here i give you again the latest error messages that i got.
Can you show me in which part that i made a mistake?
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math /home/LENOVO/roms/projects/Upwelling/Build/ocean_control.o /home/LENOVO/roms/projects/Upwelling/Buroms/projects/Upwelling/Build/ocean_coupler.o /home/LENOVO/roms/projects/Upwelling/Build/roms_export.o /home/LENOVO/roms/projects/Upwelling/Build/mascts/Upwelling/Build/propagator.o /home/LENOVO/roms/projects/Upwelling/Build/roms_import.o -o /home/LENOVO/roms/projects/Upwelling/oceanS.exe /home/LEBuild/libUTIL.a /home/LENOVO/roms/projects/Upwelling/Build/libNLM.a /home/LENOVO/roms/projects/Upwelling/Build/libNLM_bio.a /home/LENOVO/roms/projecta /home/LENOVO/roms/projects/Upwelling/Build/libANA.a /home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff -lnetcdf -lnetcdf
/usr/local/lib/libnetcdff.a(nf_nc4.o): In function `nf_inq_ncid_':
/home/LENOVO/software/netcdf-fortran-4.4.2/fortran/nf_nc4.f90:146: undefined reference to `nc_inq_ncid'
/home/LENOVO/software/netcdf-fortran-4.4.2/fortran/nf_nc4.f90:146:(.text+0x2c8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
/usr/local/lib/libnetcdff.a(nf_nc4.o): In function `nf_inq_grps_':
/home/LENOVO/software/netcdf-fortran-4.4.2/fortran/nf_nc4.f90:175: undefined reference to `nc_inq_grps'
...
...
...
But for me it is unclear what i must do, sorry I am really new in this thing.
I still could not solve the problems, here i give you again the latest error messages that i got.
Can you show me in which part that i made a mistake?
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math /home/LENOVO/roms/projects/Upwelling/Build/ocean_control.o /home/LENOVO/roms/projects/Upwelling/Buroms/projects/Upwelling/Build/ocean_coupler.o /home/LENOVO/roms/projects/Upwelling/Build/roms_export.o /home/LENOVO/roms/projects/Upwelling/Build/mascts/Upwelling/Build/propagator.o /home/LENOVO/roms/projects/Upwelling/Build/roms_import.o -o /home/LENOVO/roms/projects/Upwelling/oceanS.exe /home/LEBuild/libUTIL.a /home/LENOVO/roms/projects/Upwelling/Build/libNLM.a /home/LENOVO/roms/projects/Upwelling/Build/libNLM_bio.a /home/LENOVO/roms/projecta /home/LENOVO/roms/projects/Upwelling/Build/libANA.a /home/LENOVO/roms/projects/Upwelling/Build/libUTIL.a /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff -lnetcdf -lnetcdf
/usr/local/lib/libnetcdff.a(nf_nc4.o): In function `nf_inq_ncid_':
/home/LENOVO/software/netcdf-fortran-4.4.2/fortran/nf_nc4.f90:146: undefined reference to `nc_inq_ncid'
/home/LENOVO/software/netcdf-fortran-4.4.2/fortran/nf_nc4.f90:146:(.text+0x2c8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol
/usr/local/lib/libnetcdff.a(nf_nc4.o): In function `nf_inq_grps_':
/home/LENOVO/software/netcdf-fortran-4.4.2/fortran/nf_nc4.f90:175: undefined reference to `nc_inq_grps'
...
...
...
Re: Problems in ROMS installation
This should be more like:/home/LENOVO/roms/projects/Upwelling/Buildlnetcdff -lnetcdf -lnetcdf
Code: Select all
-L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
* Did you put the path into your build.bash or did you ask your build/makefile to run nc-config/nf-config?
* What happens if you run nc-config/nf-config on the command line?
* What version of netcdf is this and did you build it yourself?
* What do you get with "ls /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff"?
Re: Problems in ROMS installation
in the build.bash file that i put under the directory /home/LENOVO/projects/Upwelling, I wrote the following :
export MY_ROOT_DIR=/home/LENOVO/roms
export MY_PROJECT_DIR=${MY_ROOT_DIR}/projects/Upwelling
when I run nc-config/ nf-config, i got this:
for nc-config
Available values for OPTION include:
--help display this help message and exit
--all display all options
--cc C compiler
--cflags pre-processor and compiler flags
--has-dap whether OPeNDAP is enabled in this build
--has-nc2 whether NetCDF-2 API is enabled
--has-nc4 whether NetCDF-4/HDF-5 is enabled in this build
--has-hdf5 whether HDF5 is used in build (always the same as --has-nc4)
--has-hdf4 whether HDF4 was used in build
--has-pnetcdf whether parallel-netcdf (a.k.a. pnetcdf) was used in build
--libs library linking information for netcdf
--prefix Install prefix
--includedir Include directory
--version Library version
--fc Fortran compiler
--fflags flags needed to compile a Fortran program
--flibs libraries needed to link a Fortran program
--has-f90 whether Fortran 90 API is installed
for nf-config:
Available values for OPTION include:
--help display this help message and exit
--all display all options
--cc C compiler
--fc Fortran compiler
--cflags pre-processor and compiler flags
--fflags flags needed to compile a Fortran program
--has-dap whether OPeNDAP is enabled in this build
--has-nc2 whether NetCDF-2 API is enabled
--has-nc4 whether NetCDF-4/HDF-5 is enabled in this build
--has-f90 whether Fortran 90 API is enabled in this build
--has-f03 whether Fortran 2003 API is enabled in this build
--flibs libraries needed to link a Fortran program
--prefix Install prefix
--includedir Include directory
--version Library version
i use netcdf-c-4.3.3.1 and netcdf-fortran-4.4.2, and, in my system, i put them under the directories: "/home/LENOVO/software/netcdf-c-4.3.3.1" and "/home/LENOVO/software/netcdf-fortran-4.4.2".
when i installed netcdf-c-4.3.3.1, I choose to disable netcdf-4, because i didn't have HDF5 package, does this contribute to my problem?
when i typed "make check" for netcdf-4.3.3.1 and netcdf-fortran-4.4.2, everything was fine and thus when i installed using "make install", they were installed succesfully.
I could find files "libnetcdf.a" and "libnetcdff.a" in the same directory: "/usr/local/lib"
when i tried "ls /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff", i got this:
ls: cannot access /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff: No such file or directory
so , what is actually happening here?
export MY_ROOT_DIR=/home/LENOVO/roms
export MY_PROJECT_DIR=${MY_ROOT_DIR}/projects/Upwelling
when I run nc-config/ nf-config, i got this:
for nc-config
Available values for OPTION include:
--help display this help message and exit
--all display all options
--cc C compiler
--cflags pre-processor and compiler flags
--has-dap whether OPeNDAP is enabled in this build
--has-nc2 whether NetCDF-2 API is enabled
--has-nc4 whether NetCDF-4/HDF-5 is enabled in this build
--has-hdf5 whether HDF5 is used in build (always the same as --has-nc4)
--has-hdf4 whether HDF4 was used in build
--has-pnetcdf whether parallel-netcdf (a.k.a. pnetcdf) was used in build
--libs library linking information for netcdf
--prefix Install prefix
--includedir Include directory
--version Library version
--fc Fortran compiler
--fflags flags needed to compile a Fortran program
--flibs libraries needed to link a Fortran program
--has-f90 whether Fortran 90 API is installed
for nf-config:
Available values for OPTION include:
--help display this help message and exit
--all display all options
--cc C compiler
--fc Fortran compiler
--cflags pre-processor and compiler flags
--fflags flags needed to compile a Fortran program
--has-dap whether OPeNDAP is enabled in this build
--has-nc2 whether NetCDF-2 API is enabled
--has-nc4 whether NetCDF-4/HDF-5 is enabled in this build
--has-f90 whether Fortran 90 API is enabled in this build
--has-f03 whether Fortran 2003 API is enabled in this build
--flibs libraries needed to link a Fortran program
--prefix Install prefix
--includedir Include directory
--version Library version
i use netcdf-c-4.3.3.1 and netcdf-fortran-4.4.2, and, in my system, i put them under the directories: "/home/LENOVO/software/netcdf-c-4.3.3.1" and "/home/LENOVO/software/netcdf-fortran-4.4.2".
when i installed netcdf-c-4.3.3.1, I choose to disable netcdf-4, because i didn't have HDF5 package, does this contribute to my problem?
when i typed "make check" for netcdf-4.3.3.1 and netcdf-fortran-4.4.2, everything was fine and thus when i installed using "make install", they were installed succesfully.
I could find files "libnetcdf.a" and "libnetcdff.a" in the same directory: "/usr/local/lib"
when i tried "ls /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff", i got this:
ls: cannot access /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff: No such file or directory
so , what is actually happening here?
-
- Posts: 106
- Joined: Wed Feb 03, 2010 6:59 pm
- Location: Universidad Autonoma de Baja California Sur
Re: Problems in ROMS installation
Hello Novtov
What is the system you are working in, linux or windows?
Can you tell?
Have a nice day!!
What is the system you are working in, linux or windows?
Can you tell?
Have a nice day!!
Re: Problems in ROMS installation
If you turn off netcdf-4 in the build of the netcdf-4 code, you can still set USE_NETCDF4 to on in the ROMS build script. That will tell it to use nc-config, which you want.
Sorry, should have said to run "nc-config --flibs". If nc-config doesn't support that, your nf-config does. If so, you need to change nc-config to nf-config somewhere in the Compile directory.
Since your netcdf is not in /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff, you need to change your build script so that it doesn't look for netcdf there. I find the build script to be a horrible mess of "if this, look here", "if that, look there", "unless netcdf4, in which case do something else". Best to get the netcdf4 case working and use it.
Sorry, should have said to run "nc-config --flibs". If nc-config doesn't support that, your nf-config does. If so, you need to change nc-config to nf-config somewhere in the Compile directory.
Since your netcdf is not in /home/LENOVO/roms/projects/Upwelling/Buildlnetcdff, you need to change your build script so that it doesn't look for netcdf there. I find the build script to be a horrible mess of "if this, look here", "if that, look there", "unless netcdf4, in which case do something else". Best to get the netcdf4 case working and use it.