OpenAtomFoundation / pika

Pika is a Redis-Compatible database developed by Qihoo's infrastructure team.
BSD 3-Clause "New" or "Revised" License
5.76k stars 1.19k forks source link

centos7.4下无法使用snnapy压缩选项 #245

Closed chinyajie closed 6 years ago

chinyajie commented 6 years ago

我尝试在centos7.4(64位)下使用pika,一切都很顺利,但是一旦./pika.conf的compression参数选择snappy而不是none的时候启动pika的时候就会报错。 “”I0308 08:16:18.261109 1430 pika_server.cc:79] Prepare DB... [FATAL] open kv db failed, Invalid argument: Compression type Snappy is not linked with the binary. “” 我确认我已经安装了snappy,也把libsnappy.a 的路径加入了LD_LIBRARY_PATH,但还是不行,不知道为什么?

Leviathan1995 commented 6 years ago

你是后来装的snappy吗? 重新编译一下rocksdb

chinyajie commented 6 years ago

@Leviathan1995 谢谢你的提示,完全重新编译以后就可以了

Leviathan1995 commented 6 years ago

ok