Project

General

Profile

Update CDO 1.6.2 in Ubuntu 14.04

Added by Beata Szabo-Takacs over 9 years ago

I use CDO 1.6.2+dfsg.1-1 which is installed by ubuntu software center in Ubuntu 14.04. I would like to install 1.6.4 because the earlier version is not able to convert grib to netcdf. I downloaded the libs4cdo-0.0.11 package from CDO website. The Jasper is installed successfully in usr/local/lib, but I got the following error message during grib_api installation:

/usr/bin/ld: //usr/local/lib/libjasper.a(jas_image.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
//usr/local/lib/libjasper.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libgrib_api.la] Error 1

Could someone write me how I can fix this error or how I should update CDO version in Ubuntu 14.04?

I would appreciate if someone helped me!

Beata


Replies (2)

RE: Update CDO 1.6.2 in Ubuntu 14.04 - Added by Ralf Mueller over 9 years ago

hi!

libs4cdo should be the last option for getting the libraries for CDO. all major dependencies of CDO can be satified by ubuntu: netcdf, hdf5, proj4, jasper, grib-api, ... ubuntu search

my recommondation is:

  1. use system packages for development, i.e. *-dev versions of netcdf, hdf5, ...
  2. configure CDO with plain configure options, i.e.
    --with-netcdf --with-hdf5
  3. dont forget to set the installation path with --prefix

libs4cdo was designed as a last option for systems, where these dependencies cannot be met by the package manager. Building on ubuntu should be done without libs4cdo.
You might try Anaconda as an alternative.

RE: Update CDO 1.6.2 in Ubuntu 14.04 - Added by Beata Szabo-Takacs over 9 years ago

Thank you very much for your help! It works!

    (1-2/2)