leveldb-ruby icon indicating copy to clipboard operation
leveldb-ruby copied to clipboard

undefined symbol: _ZN6snappy19MaxCompressedLengthEm

Open dalyc opened this issue 12 years ago • 6 comments

Hi

I've installed leveldb-ruby and I'm getting this when I try to use

ruby: symbol lookup error: /home/colin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/leveldb-ruby-0.15/lib/leveldb/leveldb.so: undefined symbol: _ZN6snappy19MaxCompressedLengthEm

I found a reference to this problem in the closed issues but I couldn't see a solution. I have version leveldb-ruby-0.15 installed.

If you have any tips on how to get around this, I'd appreciate it. Thanks.

Colin

dalyc avatar Dec 13 '12 02:12 dalyc

Any luck resolving this? I'm having the same problem.

dbichko avatar Feb 08 '13 05:02 dbichko

No, I'm afraid not. Sorry mate. I would love to hear back from you if you do solve it though...

On Fri, Feb 8, 2013 at 4:12 PM, dbichko [email protected] wrote:

Any luck resolving this? I'm having the same problem.

— Reply to this email directly or view it on GitHubhttps://github.com/wmorgan/leveldb-ruby/issues/23#issuecomment-13277318.

dalyc avatar Feb 09 '13 05:02 dalyc

Seems you have to install (and require) the 'snappy' gem separately - it wasn't quite clear from the docs.

dbichko avatar Feb 12 '13 20:02 dbichko

I just ran into this problem too. Shouldn't snappy be a default dependency if it's used by default?

epitron avatar Jun 07 '13 06:06 epitron

I have had this problem in the past - and fixed it by reinstalling libraries. Just started using it again after a long time and the same problem is there....

So I tried the leveldb-native gem (https://github.com/vjoel/ruby-leveldb-native) and that works fine.

craic avatar Mar 24 '17 21:03 craic

may be too late for you,but i find the way to solve this:to remove all soft above snappy:libsnappy1v5,libsnappy-dev...,than you can make it successfully. And you can re-install snappy after that.

renjc0816 avatar Mar 29 '22 02:03 renjc0816