简体   繁体   English

如何将RocksDB安装到ubuntu中?

[英]How to install RocksDB into ubuntu?

RocksDB是由facebook创建的键/值数据库,运行良好,但缺少如何安装生产版本的文档。

The code below works fine on Ubuntu 16.04 and was placed here to help 下面的代码在Ubuntu 16.04上正常工作,并在此处提供帮助

git clone https://github.com/facebook/rocksdb.git
cd rocksdb

DEBUG_LEVEL=0 make shared_lib install-shared

export LD_LIBRARY_PATH=/usr/local/lib

Hope this helps. 希望这可以帮助。

Kemper 肯珀

I was going through the same thing but I found answer, installation instructions are in fact there, just need to snoop around a little 我正在经历同样的事情,但我找到答案,安装说明其实就在那里,只需要窥探一下

https://github.com/facebook/rocksdb/blob/master/INSTALL.md https://github.com/facebook/rocksdb/blob/master/INSTALL.md

to wrap these instructions in few lines: 用几行代码包装这些说明:

Dependencies: 依赖关系:

sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev

Installation: 安装:

git clone https://github.com/facebook/rocksdb.git
cd rocksdb/
make all
sudo apt-get install librocksdb-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM