Code: Select all
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math
...
/home/bperfect/roms/roms_templates/seamount/Build/libANA.a /home/bperfect/roms/roms_templates/seamount/Build/libUTIL.a /home/bperfect/roms/roms_templates/seamount/Build/libMODS.a -L/usr/local/lib -lnetcdf
/home/bperfect/roms/roms_templates/seamount/Build/libUTIL.a(close_io.o): In function `close_out_':
close_io.f90:(.text+0x106e): undefined reference to `__netcdf_MOD_nf90_strerror'
The wiki tells me that I appear to be missing a -lnetdcff flag on the final line before the error. The problem is that there isn't any direction on how to make that flag appear. I've played around in the basic build.bash file that came with ROMS, but to no avail. When I change around the system variables within that default build file to reflect the locations of my own installations, I get the same failure, but without either the -L/usr/local/lib or -lnetcdf flag.
My nc-config is as follows:
Code: Select all
bperfect@fourier:seamount $ nc-config --all
This netCDF 4.4.0 has been built with the following features:
--cc -> gcc
--cflags -> -I/usr/local/include -I/usr/local/include
--libs ->
--has-c++ -> no
--cxx ->
--has-c++4 -> no
--cxx4 ->
--fc ->
--fflags ->
--flibs ->
--has-f90 -> no
--has-dap -> no
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no
--has-pnetcdf-> no
--prefix -> /usr/local
--includedir-> /usr/local/include
--version -> netCDF 4.4.0
As far as the installation goes, I've installed and tested, to the best of my knowledge, everything that ROMS requires.
Any wisdom on how to fix this?