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

How to open the already created database after closing the app #36

Open
mounarajan opened this issue Dec 9, 2014 · 0 comments
Open

Comments

@mounarajan
Copy link

i have created the app by

require 'leveldb'
db = LevelDB::DB.new("test14.db")
db.put "one","hi welcome3"
puts db.get "one"

Now after closing this app how to open the database???

i tried

require 'leveldb'
db = LevelDB::DB.new("test14.db")
puts db.get "one"

But the above code throws error

ruby: symbol lookup error: /home/mounarajan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/leveldb-ruby-0.15/leveldb/leveldb.so: undefined symbol: _ZN6snappy19MaxCompressedLengthEm

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

1 participant