Project

General

Profile

Installation with netcdf capabilities issue

Added by Juan José Gómez Navarro over 13 years ago

Hello, I'm trying to install cdo with netcdf compability in a Mac system. I have installed successfully netcdf (or I hope so), but when I run

>./configure --with-netcdf=../netcdf

I get the error message:

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

And the configurtion finishes. Maybe this is not a problem with cdo itself, but in any case maybe someone has had the same problem before...

Any idea is welcome. Thanks.


Replies (5)

RE: Installation with netcdf capabilities issue - Added by Uwe Schulzweida over 13 years ago

you have to use the absolute path of your netCDF installation, e.g.:

./configure --with-netcdf=`pwd`/../netcdf
Regards, Uwe

RE: Installation with netcdf capabilities issue - Added by Juan José Gómez Navarro over 13 years ago

Uwe Schulzweida wrote:

you have to use the absolute path of your netCDF installation, e.g.:
[...]Regards, Uwe

Hello, and thanks for the fast reply. I didn't mention, but I have used both, relative and absolute paths. Nothing changes, there must be something else. I have also tried to install the binaries of the netCDF distribution and I get the same problem, which means the netCDF installation does not seem to be the problem... :(

RE: Installation with netcdf capabilities issue - Added by Uwe Schulzweida over 13 years ago

Ok, whats exactly going wrong is reported in the config.log file. Could you please attach this file.

RE: Installation with netcdf capabilities issue - Added by Uwe Schulzweida over 13 years ago

It seems that you have a static build netCDF4 library with OpenDAP support installed. In this case you have to add at least the curl library with LIBS='-lcurl':

./configure --with-netcdf=/.../netcdf LIBS='-lcurl'
Possibly it is necessary to add many more libraries. See known problem for a more detailed description of this problem.

    (1-5/5)