Rocksdb: Error: Compression type Snappy is not linked with the binary

Created on 12 Oct 2015  路  8Comments  路  Source: facebook/rocksdb

Hi I'm facing an error which is: Compression type Snappy is not linked with the binary.

I got this error while running the simple_example in the examples/ directory. I simply built this by using make simple_example. However, this program failed at the s.ok() assertion. So I followed the instruction in the wiki to find out what had happened. With s.ToString(), I've got the error message listed previously.

It seems that I haven't got this library, so I've built it again with this option:

options.compression = kNoCompression;

But still, that error message showed up again..

Thanks for your help!

Most helpful comment

Finally, I address the issue by upgrading the snappy verison. If you have the same problem, you can also solve that.
libsnappy-dev_1.1.7 is required.

All 8 comments

Can you please install snappy library before compiling RocksDB? This should be pretty simple. For example, if you're running Ubuntu, you just have to call: sudo apt-get install libsnappy-dev

Hi @igorcanadi Your idea works, thanks a lot. :+1:

I make a rocksdb shared library for golang use, I want to use LZ4 compression. But it said Invalid argument: Compression type LZ4 is not linked with the binary.

I execute make liblz4.a, It still show this message.

lz4 lz4-devel needed by rocksdb . But the document do not mention it

The issue is resolved after i update the version of libsnappy

@yinyi26 which version did you update to ?

Why the same issue occurs?

When I test with ./db_bench --benchmarks="fillsync"

open error: Invalid argument: Compression type Snappy is not linked with the binary.

I have already installed the snappy, but it does not work.

Some one could help me figure out ?

Thanks

Finally, I address the issue by upgrading the snappy verison. If you have the same problem, you can also solve that.
libsnappy-dev_1.1.7 is required.

Was this page helpful?
0 / 5 - 0 ratings