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

'leveldb_compact_range' undeclared #8

Closed
donpdonp opened this issue Oct 27, 2012 · 2 comments
Closed

'leveldb_compact_range' undeclared #8

donpdonp opened this issue Oct 27, 2012 · 2 comments

Comments

@donpdonp
Copy link

Hi, I'm trying to get a hello world working using go and leveldb.

$ go get github.com/jmhodges/levigo

github.com/jmhodges/levigo

1: error: 'leveldb_compact_range' undeclared (first use in this function)
1: note: each undeclared identifier is reported only once for each function it appears in

This looks to me like leveldb header/lib files are not found but they are installed in the "usual" place
$ dpkg -L libleveldb-dev
/usr/lib/libleveldb.a
/usr/include/leveldb/db.h
... etc etc etc

$ go version
go version go1

@donpdonp
Copy link
Author

answer:Ubuntu 12.04's leveldb (January 2012) is too old for this project.

$ dpkg -l libleveldb-dev
ii libleveldb-dev 0+20120125.git3c8b fast key-value storage library

after building leveldb 1.7.0 from source and using that, it worked.
also putting the CGO_FLAGS in the README was very helpful!

@jmhodges
Copy link
Owner

Sorry for the confusion. I've made a note in the readme about the current version requirements!

I'll be thinking on how to do future LevelDB version upgrades.

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

2 participants