Comments (7)
I guess the reason is:
the default write_buffer_size is 4MB, so when the Memory flush to disk, LevelDB call snappy function, but the LevelDB-ruby did not include the snappy lib.
from leveldb-ruby.
It solved.
- download leveldb-ruby source code.
- modify the line12 of ./ext/leveldb/extconf.rb
from
$LIBS << " -L../../leveldb -lleveldb"
to
$LIBS << " -L../../leveldb -lleveldb -lsnappy"
- run
# rake -T spec
# ruby setup.rb
# cd /usr/local/lib/site-ruby/1.9.1/i686-linux/
# cp leveldb.so ../leveldb/
- copy
snappy.so.1
to above leveldb path. - try the test code.
from leveldb-ruby.
Hello,
Thanks for the report. But I can't reproduce this. What version of the leveldb-ruby gem do you have installed?
from leveldb-ruby.
The gem version is 5975fd7
My test enviroment is UNBUNTU 11.10
from leveldb-ruby.
Can you try the latest master? I've updated to the latest leveldb code and this solved the snappy problem for some people (e.g. #20)
from leveldb-ruby.
1. Try the new rubyforge gem
I tried the :
gem install level-ruby
again, something make me confused, the ruby report
in put: wrong argument type LevelDB::DB (expected Data) (TypeError)
but your test file works.
2. Try the latest master, and build it manually
commands:
rake gem
setup.ruby
cp ./i686-linux/leveldb.so ./leveldb/
.../lib/leveldb/leveldb.so: undefined symbol: _ZN6snappy19MaxCompressedLengthEj
It seems it does not work, I guess the g++ command need -lsnappy
switch in Makefile of google leveldb source files.
from leveldb-ruby.
I don't know if you're still experiencing this problem, but I solved this by just remove snappy/leveldb from my package manager, then reinstalled the gem.
from leveldb-ruby.
Related Issues (20)
- update code to latest leveldb HOT 1
- Build fail in ree 1.8.7 HOT 3
- Crash when storing large object HOT 2
- How to check if Snappy library is used HOT 6
- upgrade leveldb dependency HOT 2
- Curious issue when forking HOT 1
- undefined symbol: _ZN6snappy19MaxCompressedLengthEm HOT 6
- efficient way to count keys/values?
- Gem installation failing on documentation.
- https://github.com/DAddYE/leveldb HOT 1
- extconf.rb fails automatically due to no detection of environmental make
- Iterator interface leaks files
- How to open the already created database after closing the app
- gem installation failing HOT 3
- leveldb::VersionSet::~VersionSet(): Assertion `dummy_versions_.next_ == &dummy_versions_' failed
- Building Native gem fails in windows.
- How to turn off compression? HOT 1
- Native building fails on freebsd
- Gem install fails on MacOS HOT 1
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 leveldb-ruby.