[gdal-dev] Installing GDAL with GEOS and Python Bindings on Ubuntu Linux Natty Narwhal 11.04

Anton Korosov anton.korosov at nersc.no
Mon Sep 26 03:15:33 EDT 2011

first install geos library using Ubuntu software center (libgeos, 
then download gdal source and configure it:
./configure --with-python -with-geos=yes
sudo make install

If that doesn't work give me a sign, I'll publish more detailed 

Good luck!

ps. I have Natty, Python 2.7 and GDAL with support of HDF4 and  GEOS. 
Everything works perfect.

On 09/24/2011 04:17 AM, Duncan Garmonsway wrote:
> Hi
> How do you install GDAL with GEOS and the Python Bindings on Ubuntu
> Linux Natty Narwhal 11.04?
> I've Googled an awful lot and tried heaps of suggestions most of which
> I'm afraid I can't remember.  Presumably my system is now in a horrible
> mess.  I remember installing umpteen different versions of Python, for
> example.
> Somehow I managed to get enough of GDAL and Python to work to use
> gdalbuildvrt and gdal2tiles.py.  But now I want to do something like:
> ogr2ogr -s_srs EPSG:2193 -t_srs EPSG:2193 -f "GeoJSON" -clipdst
> 18785164.071364913 -5009377.0856973119 20037508.342789244
> -3757032.814272983 doc-campsites-clipped.json doc-campsites.shp
> which responds with hundreds of lines of "ERROR 6: GEOS support not
> enabled."  Leaving out "-clip dst", as below, works though.
> ogr2ogr -s_srs EPSG:2193 -t_srs EPSG:2193 -f "GeoJSON"
> doc-campsites-clipped.json doc-campsites.shp
> I probably tried using the Ubuntu Software Centre.  I remember doing
> something with FWTools, reluctantly, because it's out of date.  I
> remember building lots of stuff from source.  I added the
> ubuntugis-unstable repositry and did "apt-get update".  My hopes were
> raised when "apt-get install gdal-bin" didn't fail, but then "apt-get
> install python-gdal" responded with
> The following packages have unmet dependencies:
>   python-gdal : Depends: python (< 2.7) but 2.7.1-0ubuntu5 is to be
> installed
> E: Broken packages
> Which is how I ended up installing (maybe even building) earlier
> versions of Python.
> Many thanks,
> Duncan
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

More information about the gdal-dev mailing list