Michael Corey | 14 Jun 2012 00:15
Favicon

[OSM-dev] Problem building osm2pgsql from source

Hi all: Please excuse me if this isn't the right list for this.

While following the directions for installing osm2pgsql from source, I get a fatal error while running 'make':

build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp
build_geometry.cpp:29:26: fatal error: geos/version.h: No such file or directory
compilation terminated.

I'm following the directions here:
http://wiki.openstreetmap.org/wiki/Osm2pgsql

and here:
http://wiki.openstreetmap.org/wiki/Osm2pgsql#From_source_.28generic.29

I'm building libprotobuf-c0-dev from source as well, because I'd like PBF support.

I haven't found an obvious solution online for what to do next.

Thanks,


--
Michael Corey
News Applications Developer
Center for Investigative Reporting
510.809.3178

2012 Recipient of the MacArthur Award for Creative and Effective Institutions
_______________________________________________
dev mailing list
dev <at> openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
Jon Burgess | 14 Jun 2012 00:45
Picon

Re: [OSM-dev] Problem building osm2pgsql from source

On Wed, 2012-06-13 at 15:15 -0700, Michael Corey wrote:
> Hi all: Please excuse me if this isn't the right list for this.
> 
> 
> 
> While following the directions for installing osm2pgsql from source, I
> get a fatal error while running 'make':
> 
> build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp
> build_geometry.cpp:29:26: fatal error: geos/version.h: No such file or
> directory
> compilation terminated.
> 
What distro are you building this on? 

The version.h file should be part of the geos library headers, e.g. 

Ubuntu:
$ dpkg -S /usr/include/geos/version.h 
libgeos-dev: /usr/include/geos/version.h

Fedora:
$ rpm -qf /usr/include/geos/version.h 
geos-devel-3.3.1-1.fc16.x86_64

  Jon
Sarah Hoffmann | 14 Jun 2012 01:02
Picon

Re: [OSM-dev] Problem building osm2pgsql from source

On Wed, Jun 13, 2012 at 11:45:50PM +0100, Jon Burgess wrote:
> On Wed, 2012-06-13 at 15:15 -0700, Michael Corey wrote:
> > Hi all: Please excuse me if this isn't the right list for this.
> > 
> > 
> > 
> > While following the directions for installing osm2pgsql from source, I
> > get a fatal error while running 'make':
> > 
> > build_geometry.Tpo -c -o build_geometry.o build_geometry.cpp
> > build_geometry.cpp:29:26: fatal error: geos/version.h: No such file or
> > directory
> > compilation terminated.
> > 
> What distro are you building this on? 
> 
> The version.h file should be part of the geos library headers, e.g. 
> 
> Ubuntu:
> $ dpkg -S /usr/include/geos/version.h 
> libgeos-dev: /usr/include/geos/version.h

Also try to install the libgeos++-dev package. 
Debian has moved the headers there recently.

Sarah

Gmane