-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian compatibility #5
Comments
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. |
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 |
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 |
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. |
My wrong, turns out I needed to install leveldb first. |
This might be totally out of subject (and i would be sorry for that) but: |
Closing this as current binaries are supported even by older Linux distributions. |
When launching the binaries on Debian Wheezy, nothing happens, because imposm requires GLIBC_2.14, which is not (yet) available under Debian.
I can resolve the following problems by moving
lib
out of the way and installing the libraries manually:Building imposm on Debian is problematic as well, because
go get github.com/jmhodges/levigo
doesn't build at all with the provided levigo.The only solution I found was replacing levigo by
https://github.com/jmhodges/levigo_leveldb_1.4
, which is rather a workaround than a solution.Another problem appears when installing
imposm3/geom/ogr
:Even though I have installed gdal with all the libraries (gdal-bin and libgdal-dev), the library is still missing.
Would be very nice, if there would be a solution to make it compatible with the unreasonably old packages of Debian.
The text was updated successfully, but these errors were encountered: