[Tile-serving] [osm2pgsql] Compiling from source not working ... ? (#144)

Richard Fairhurst notifications at github.com
Thu Apr 16 08:09:53 UTC 2015


This is the same issue for me and prevents osm2pgsql from compiling. (OS X Yosemite, 10.10.3.)

I use Postgres.app, which includes PostGIS and therefore geos. Their geos is linked against libstdc++.

In theory I could compile osm2pgsql like this:

`./configure --with-zlib=/usr/local/opt/zlib --with-bzip2=/usr/local/opt/bzip2 --with-geos=/usr/local/Cellar/geos/3.4.2/bin/geos-config --with-postgresql=/Applications/Postgres.app/Contents/MacOS/bin/pg_config`

However, this results in a GCC command line like this:

`-I/Applications/Postgres.app/Contents/MacOS/include [...] -I/usr/local/Cellar/geos/3.4.2/include`

so it still finds the Postgres.app geos before the Homebrew one.

I have a "last good" version of osm2pgsql (0.83.0) which works fine for me, but I've pretty much given up on getting newer versions to work, I'm afraid.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/144#issuecomment-93672949
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150416/927a6f65/attachment-0001.html>


More information about the Tile-serving mailing list