Giter VIP home page Giter VIP logo

Comments (8)

thomersch avatar thomersch commented on June 19, 2024

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.

benjamin-rty avatar benjamin-rty commented on June 19, 2024

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.

thomersch avatar thomersch commented on June 19, 2024

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.

benjamin-rty avatar benjamin-rty commented on June 19, 2024

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.

benjamin-rty avatar benjamin-rty commented on June 19, 2024

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.

benjamin-rty avatar benjamin-rty commented on June 19, 2024

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.

demiurg avatar demiurg commented on June 19, 2024

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.

olt avatar olt commented on June 19, 2024

GEOS_LIBRARY_PATH is GeoDjango specific.

from imposm3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.