Comments (8)
There is a small problem that is caused by goprotobuf's transition from Google Code to GitHub. The easiest option would be to get imposm3 via godep. The installation description is given there: https://github.com/omniscale/imposm3#godep
But of course it would be great if someone changed the import path in imposm to the new URL https://github.com/golang/protobuf
from imposm3.
Dear thomersch,
When I try your suggestion with godep, I get the following errors:
godep go install ./...
# github.com/omniscale/imposm3/geom/geos
geom/geos/coords.go:5:20: fatal error: geos_c.h: No such file or directory
compilation terminated.
# github.com/jmhodges/levigo
could not determine kind of name for C.leveldb_free
godep: go exit status 2'
from imposm3.
Could it be that you missed the C dependencies? On Debian you have to install the packages libgeos-dev
, libprotobuf-dev
and libleveldb-dev
from imposm3.
when installing those packages (again):
godep go install ./...
# github.com/jmhodges/levigo
could not determine kind of name for C.leveldb_free
# github.com/omniscale/imposm3/geom/geos
/usr/bin/ld: cannot find -lgeos
collect2: error: ld returned 1 exit status
godep: go exit status 2
from imposm3.
I fixed the error:
/usr/bin/ld: cannot find -lgeos
by adding symlinks:
cd /usr/lib
sudo ln -s libgeos-3.3.3.so libgeos.so
sudo ln -s libgeos-3.3.3.so libgeos.so.1
The error with C.leveldb_free still remains...
from imposm3.
Found some issues on google topics => It sees that you're getting the apt leveldb in addition to building it from source. The problem I think is with the leveldb from the apt repo. I think it's an old one and you're running into this issue. In the steps remove libleveldb libleveldb-dev libleveldb1 and libsnappy-dev from the apt-get install. Once you just have the 1.15, go get github.com/jmhodges/levigo should work.
normaly : apt-get install git libleveldb libleveldb-dev libleveldb1 libgeos libsqlite3-0 libsnappy-dev mercurial
but you have to remove some installations: apt-get remove libleveldb libleveldb-dev libleveldb1
Install levelDB yourself:
wget https://leveldb.googlecode.com/files/leveldb-1.15.0.tar.gz
tar -xvf leveldb-1.15.0.tar.gz && cd /leveldb-1.15.0/
make
cp -r include/leveldb /usr/include/
cp libleveldb.* /usr/lib/
and then use godep go install ./..
(https://github.com/omniscale/imposm3#godep)
everythings works fine !
from imposm3.
Might be a more portable way to fix the geos lib problem:
https://docs.djangoproject.com/en/1.8/ref/contrib/gis/install/geolibs/#geos-library-path
from imposm3.
GEOS_LIBRARY_PATH is GeoDjango specific.
from imposm3.
Related Issues (20)
- 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
- Can't install latest revision: setMaxFileSize redeclared in this block HOT 2
- Missing and empty polygons after import (related to building and parts) HOT 6
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.