CDO installing problem "present but cannot be compiled"
Added by Daniel Mercado Betín almost 11 years ago
Hi everyone,
I already install libs4cdo-0.0.10, but when I want to compile CDO with this:
sudo ./configure --with-netcdf=/home/daniel/libs4cdo-0.0.10/build --with-szlib=/home/daniel/libs4cdo-0.0.10/build --with-hdf5=/home/daniel/libs4cdo-0.0.10/build --with-proj=/home/daniel/libs4cdo-0.0.10/build CPPFLAGS='-Dfseeko=fseek -Dftello=ftell -Dstrtok_r=strtok_s' CFLAGS=-g
It appears:
WARNING: zlib.h: present but cannot be compiled WARNING: zlib.h: check for missing prerequisite headers? WARNING: zlib.h: see the Autoconf documentation WARNING: zlib.h: section "Present But Cannot Be Compiled" WARNING: zlib.h: proceeding with the compiler's result
And the same with:
WARNING: szlib.h: present but cannot be compiled WARNING: hdf5.h: present but cannot be compiled WARNING: netcdf.h: present but cannot be compiled WARNING: malloc.h: present but cannot be compiled
When I execute make & make install, it appears:
error: conflicting types for 'fseek'
So, when I am trying to use for example:
cdo showfile file.nc
It appears:
Unsupported file type (library support not compiled in)
I suppose that this happens because I have not compiled the CDO with netcdf
Thank you
Replies (1)
RE: CDO installing problem "present but cannot be compiled" - Added by Ralf Mueller almost 11 years ago
Daniel Mercado Betín wrote:
Hi everyone,
I already install libs4cdo-0.0.10, but when I want to compile CDO with this: [...]
You're on a unix-like box, right? So you should ignore the additional CPPFLAGS
settings. These are made for cross compiling - I wrongly put them in the general documentation, sorry for that. CFLAGS
can be omitted, too.
It appears:
[...]
And the same with:
[...]When I execute make & make install, it appears:
[...]
The CDO binary is not built, when you get such a message. Just remove the CFLAGS
and CPPFLAGS
and build CDO again.
hth
ralf