Project

General

Profile

configure: error: Could not link to netcdf library

Added by Syed Ali about 12 years ago

I am trying to install cdo1.5.4 on RHEL system with netcdf option but it gives following error

checking for hdf5 library... suppressed
checking netcdf.h usability... yes
checking netcdf.h presence... yes
checking for netcdf.h... yes
checking for library containing nc_open... no
configure: error: Could not link to netcdf library

config.los is attached. Help needed.


Replies (2)

RE: configure: error: Could not link to netcdf library - Added by Uwe Schulzweida about 12 years ago

Your netCDF library was compiled with the Intel C compiler and probably with high optimization (option -fast). In this case you have to link CDO against the Intel libraries if you are using the GNU C Compiler for CDO. The gcc is the default compiler for the configuration of CDO. The easiest solution of this problem is to use the Intel C compiler also for CDO:

./configure --with-netCDF=... ...   CC=icc CFLAGS=-fast

RE: configure: error: Could not link to netcdf library - Added by Syed Ali about 12 years ago

Thanks for replying , Now the configuration is successful but it gives error during installation .Make.log is attached.

make.log (3.45 KB) make.log
    (1-2/2)