Comments (7)
Ok. It turns out, the linker doesn't look at the proper paths. When hardcoding /usr/include/gdal/ into ogr.go, the compiler/linker does the job properly. Still, rather a workaround than a solution.
from imposm3.
Hah. Thanks for pointing that out. I didn't considered that the binaries are not forward-compatible. Guess I'll have to downgrade my build system to Ubuntu 10.4 to support everything from SLES11, RHEL6 and Debian 5 (http://en.wikipedia.org/wiki/GNU_C_Library#Version_history).
For levigo: Yes, you need a more recent LevelDB version, or the levigo_leveldb_1.4 bindings which supports the Debian version of LevelDB. If you want to work with larger PBFs (Europe or Planet) then I would suggest to try https://github.com/rescrv/HyperLevelDB.
For OGR: The Debian/Ubuntu packages of libgdal are putting the header files inside gdal/
which differs from a default configure && make install
. I will have to see how to support both locations.
from imposm3.
Fails on archlinux too:
[miblon@dogo001 imposm]$ uname -a
Linux dogo001 3.11.5-1-ARCH
#1 SMP PREEMPT Mon Oct 14 08:31:43 CEST 2013 x86_64 GNU/Linux
[miblon@dogo001 imposm]$ go get imposm3
# github.com/jmhodges/levigo
batch.go:3:24: fatal error: leveldb/c.h: No such file or directory
// #cgo LDFLAGS: -lleveldb
from imposm3.
And:
[miblon@dogo001 imposm]$ go get github.com/jmhodges/levigo
# github.com/jmhodges/levigo
batch.go:3:24: fatal error: leveldb/c.h: No such file or directory
// #cgo LDFLAGS: -lleveldb
^
compilation terminated.
from imposm3.
My wrong, turns out I needed to install leveldb first.
from imposm3.
This might be totally out of subject (and i would be sorry for that) but:
gdal-config --cflags
could help.
from imposm3.
Closing this as current binaries are supported even by older Linux distributions.
from imposm3.
Related Issues (20)
- Hangs on startup on arm64 Mac HOT 1
- Dockerfile example HOT 2
- Country border The Netherlands not loaded HOT 3
- Coordinates in Imposm dataset does not match those in original data HOT 5
- support for optional jsonb_tags instead of hstore HOT 2
- support for optional jsonb_tags instead of hstore
- support for optional jsonb_tags instead of hstore
- How to append data to PostgreSQL?
- Adding specific `AND` filters on tags HOT 1
- Writting osm data to postgresql sometimes get error HOT 1
- Question - adding static data
- Error while reading osm.pbf to cache in ubuntu 20.04 in WSL HOT 1
- Undesired behaviour when SQL error is experienced updating generalized tables HOT 1
- Error message when importing diff HOT 3
- hstore_tags include by mask HOT 2
- Does this module support cross compiling?
- Bug: PG 15 - pq: current transaction is aborted, commands ignored until end of transaction block HOT 12
- other_tags in JSON?
- Cannot generate expire tiles list when using undocumented option IMPOSM3_SINGLE_DIFF
- Generalized relation_member tables are loosing records during update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imposm3.