Skip to content
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

Closed
thomersch opened this issue Oct 3, 2013 · 7 comments
Closed

Debian compatibility #5

thomersch opened this issue Oct 3, 2013 · 7 comments

Comments

@thomersch
Copy link
Contributor

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:

./imposm3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./imposm3)
./imposm3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/gis/imposm3/lib/libgeos_c.so.1)
./imposm3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/gis/imposm3/lib/libgdal.so.1)
./imposm3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/gis/imposm3/lib/libgdal.so.1)
./imposm3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/gis/imposm3/lib/libgeos-3.3.8.so)

Building imposm on Debian is problematic as well, because go get github.com/jmhodges/levigo doesn't build at all with the provided levigo.

# github.com/jmhodges/levigo
1: error: 'leveldb_free' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it appears in

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:

go get imposm3 
# imposm3/geom/ogr
ogr.go:4:21: fatal error: ogr_api.h: No such file or directory
compilation terminated.

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.

@thomersch
Copy link
Contributor Author

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.

@olt
Copy link
Member

olt commented Oct 4, 2013

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.

@milovanderlinden
Copy link

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

@milovanderlinden
Copy link

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.

@milovanderlinden
Copy link

My wrong, turns out I needed to install leveldb first.

@kapouer
Copy link

kapouer commented Mar 18, 2014

This might be totally out of subject (and i would be sorry for that) but:
gdal-config --cflags
could help.

@olt
Copy link
Member

olt commented May 9, 2017

Closing this as current binaries are supported even by older Linux distributions.

@olt olt closed this as completed May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants