omniscale/imposm3

got errot #include leveldb/c.h,but I have already installed leveldb through cmake

songrui233 opened this issue · 6 comments

Im really confused.Is there somthing I have to link to manually or sth else I have to do?please.

The error detail:
go install github.com/omniscale/imposm3/cmd/imposm

github.com/omniscale/imposm3/vendor/github.com/jmhodges/levigo

src/github.com/omniscale/imposm3/vendor/github.com/jmhodges/levigo/batch.go:4:24: fatal error: leveldb/c.h: No such file or directory
// #include "leveldb/c.h"
^
compilation terminated.

Solved

eva-j commented

For those who will find the same issue,

sudo apt-get install libleveldb-dev

helped.

@eva-j Thank you so much! Save my day!

++ thank you @eva-j 3 years later and still helping.

@eva-j Thanks!