Project

General

Profile

errors in installing the CDO

Added by Ahmed Shaaban almost 13 years ago

Hello
I am new to the CDO and i wanna to install it , after i type make , i get the following error.
here is the last lines of the make command.
../src/.libs/libcdi.a(stream_cdf.o): In function `cdfDefVarDeflate':
/home/ahmed/cdo-1.5.0/libcdi/src/stream_cdf.c:644: undefined reference to `nc_def_var_deflate'
../src/.libs/libcdi.a(stream_cdf.o): In function `cdfDefVar':
/home/ahmed/cdo-1.5.0/libcdi/src/stream_cdf.c:2730: undefined reference to `nc_def_var_chunking'
../src/.libs/libcdi.a(stream_cdf.o): In function `scanVarAttributes':
/home/ahmed/cdo-1.5.0/libcdi/src/stream_cdf.c:4216: undefined reference to `nc_inq_var_deflate'
collect2: ld returned 1 exit status
make[2]: *** [cdi] Error 1
make[2]: Leaving directory `/home/ahmed/cdo-1.5.0/libcdi/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ahmed/cdo-1.5.0/libcdi'
make: *** [all-recursive] Error 1

i have attached the full configure log file and also the make log file
thanks in advance .

configure.log (18.4 KB) configure.log this is the log file for the configure command
make.log (31.3 KB) make.log this is the log file for make command

Replies (7)

RE: errors in installing the CDO - Added by Ralf Mueller almost 13 years ago

I created an issue on that: #1237

For the time beeing, recompile your netcdf installation with

configure --enable-netcdf4
You will need HDF5 for that. Other option is libs4cdo.

RE: errors in installing the CDO - Added by Ahmed Shaaban almost 13 years ago

Hello
i used the configure --enable-netcdf4
the error is gone but when i tried to use the cdo
cdo sellonlatbox,0,360,20,-20 u_v_vor_25_25_2010_erainterium.nc ofile.nc
it give me the following error

cdo sellonlatbox: Open failed on >u_v_vor_25_25_2010_erainterium.nc<
Unsupported file type (library support not compiled in)

the error appear when i use configure option ./configure --with-netcdf=/usr/local/netcdf-4.1.2
i have netcdf installed on /usr/local and it is installed with gcc for c compiler and pgf90 for fortran compiler . have i to use the same compilation option of the netcdf for the CDO.

can i still use the netcdf installed on my computer with this option in installing the CDO.
thanks in advance .

RE: errors in installing the CDO - Added by Ralf Mueller almost 13 years ago

ahmed lasheen wrote:

Hello
i used the configure --enable-netcdf4
the error is gone but when i tried to use the cdo
cdo sellonlatbox,0,360,20,-20 u_v_vor_25_25_2010_erainterium.nc ofile.nc
it give me the following error

cdo sellonlatbox: Open failed on >u_v_vor_25_25_2010_erainterium.nc<
Unsupported file type (library support not compiled in)

the error appear when i use configure option ./configure --with-netcdf=/usr/local/netcdf-4.1.2
i have netcdf installed on /usr/local and it is installed with gcc for c compiler and pgf90 for fortran compiler . have i to use the same compilation option of the netcdf for the CDO.

If you configured netcdf with --prefix=/usr/local you should use --with-netcdf=/usr/local for CDO. For safety, you should remove the /usr/local/netcdf-4.1.2 directory.

can i still use the netcdf installed on my computer with this option in installing the CDO.

Sure. You could have multiple netcdf installations at the same time. But you can use the installation in /usr/local for multiple purposes.

RE: errors in installing the CDO - Added by Ahmed Shaaban almost 13 years ago

Hello
finally the installation succeed, i use the following configure

./configure  --with-netcdf=/usr/local/netcdf-4.1.2   --with-hdf5=/usr/local/hdf5  

when i use the

configure --enable-netcdf4

it doesn't see the netcdf4.

Unsupported file type (library support not compiled in) - Added by Mouhamad AL SAYED ALI over 12 years ago

Dear all,

I have been trying to transfer netcdf file to grib usingcdo -f grb copy EH1PL1979.nc EH1PL1979.grb

but, I have obtained
------
do copy: Open failed on >EH1PL1979.nc<
Unsupported file type (library support not compiled in)
-----

Can anyone help me, please ?

Thanks

Mouhamad

RE: errors in installing the CDO - Added by Matthias Büchner almost 12 years ago

Hello
finally the installation succeed, i use the following configure

./configure --with-netcdf=/usr/local/netcdf-4.1.2 --with-hdf5=/usr/local/hdf5
when i use the

configure --enable-netcdf4

it doesn't see the netcdf4.

This is exactly what I saw during my attemps to compile cdo 1.5.5 with netCDF4 and compression support. It looks like --enable-netcdf4 does the opposite as what it should.

Thank you!

RE: errors in installing the CDO - Added by Ralf Mueller almost 12 years ago

The configure script of CDO does not have the --enable-netcdf4 option.

Is there a need for more detailed installation instructions?

    (1-7/7)