[Gdal-dev] netcdf + ubuntu needs a trick

Mateusz Loskot mateusz at loskot.net
Wed Oct 17 07:29:25 EDT 2007


Hi,

Ubuntu users may notice some problems while configuring
GDAL with NetCDF and Xerces support.

If you use official libnetcdf packages to build GDAL with NetCDF
support, and you also configure Xerces support, you will probably get
Xerces detection error from ./configure.
The message says that -lnetcdf can not be found.

This error is caused by missing libnetcdf.so symlink to
libnetcdf.so.3.6.1. On Ubuntu Feisty, installation of libnetcdf package
does not create this symlink, so you have to create it manually:

sudo ln -s /usr/lib/libnetcdf.so.3.6.1 /usr/lib/libnetcdf.so

Francesco Paolo Lovergine confirmed that this problem does not occur on
Debian Etch, so it looks like Ubuntu specific issue.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list