Project

General

Profile

Problem with install CDO in Cygwin

Added by Phuong Nam Vu about 10 years ago

Dear members of the forum,
I would like to use CDO in Cygwin.Now, I have installed Cygwin in my 64 bit Windows 7 OS and also download libs4cdo-xxx from website. When i install CDO with command: make libs4cdo , I get the error as below :
...
checking for CC... CC
checking whether we are using the GNU C++ compiler... no
checking whether CC accepts -g... no
checking dependency style of CC... gcc3
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Makefile:269: recipe for target 'szip-2.1' failed
make2: * [szip-2.1] Error 1
make2: Leaving directory '/cygdrive/e/Setups/CDO_CYGWIN/libs4cdo-0.0.10'
Makefile:284: recipe for target 'config' failed
make1:
[config] Error 2
make1: Leaving directory '/cygdrive/e/Setups/CDO_CYGWIN/libs4cdo-0.0.10'
Makefile:374: recipe for target 'libs4cdo' failed
make: *
* [libs4cdo] Error 2

Could anybody help and guidance to solve this problem?
Many thanks and Best regards,
NAM


Replies (5)

RE: Problem with install CDO in Cygwin - Added by Ralf Mueller about 10 years ago

Hi!

Did you install all packaged for compiling ( see here )?

Just to make it as clear as possible: libs4cdo and cdo are two distinct software packages. You cannot install CDO with make libs4cdo. My recommondation is

  1. first extract the cdo-1.6.3.tar.gz
  2. try to build cdo from that source without any additional external libs with
    ./configure
    make
    
  3. if this was successful you most probably have everything ready for compiling the libs4cdo-package. If you only need things like netcdf, I strongly recommend using the precompiled binary package provided by the cygwin maintainers (whole list here). Same is true for libproj and the hdf5 library. Only if you need things like GRIB2 support or SZIP compression for GRIB1, it makes sense to use libs4cdo IMO.
    #if you choose the cygwin provided stuff, you can build CDO like stated in the manual with
    ./configure --with-netcdf=/usr --with-hdf5=/usr CFLAGS='-g -fopenmp -O2'
    make
    

hth
ralf

RE: Problem with install CDO in Cygwin - Added by Phuong Nam Vu about 10 years ago

Dear Ralf,
Thanks so much for your helping. I try to build cdo from cdo-1.6.3.tar.gz with command line: ./configure. But I still have error as:
...
configure: setting up libtool
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/cygdrive/e/setups/cdo_cygwin/cdo-1.6.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
Could you help me solve this problem?
Thanks you so much again.
NAM

RE: Problem with install CDO in Cygwin - Added by Ralf Mueller about 10 years ago

Could you upload the config.log file? Otherwise it's hard to figure out, what's happening.

RE: Problem with install CDO in Cygwin - Added by Phuong Nam Vu about 10 years ago

This is my config.log.
NAM

RE: Problem with install CDO in Cygwin - Added by Phuong Nam Vu about 10 years ago

I have solved problem when I installed gcc in cygwin. But when I install libs4cdo, i have error as:
...
make5: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10/hdf5-1.8.8/src'
Makefile:594: recipe for target 'all' failed
make4: * [all] Error 2
make4: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10/hdf5-1.8.8/src'
Makefile:503: recipe for target 'all-recursive' failed
make3:
[all-recursive] Error 1
make3: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10/hdf5-1.8.8'
Makefile:269: recipe for target 'hdf5-1.8.8' failed
make2:
[hdf5-1.8.8] Error 2
make2: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10'
Makefile:284: recipe for target 'all' failed
make1:
[all] Error 2
make1: Leaving directory '/cygdrive/e/setups/cdo_cygwin/libs4cdo-0.0.10'
Makefile:374: recipe for target 'libs4cdo' failed
make: *
* [libs4cdo] Error 2

Please help me solve me this problem.
BR,
NAM

    (1-5/5)