-
Notifications
You must be signed in to change notification settings - Fork 3
Go RocksDB
李小明 edited this page Jul 1, 2020
·
11 revisions
下载源码, 解压后进入文件夹中执行下面命令:
$ sudo apt install -y libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev
$ PORTABLE=1 make -j32 shared_lib
$ sudo make install-shared
$ sudo su
# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig
模块化安装直接下载 https://github.com/tecbot/gorocksdb/archive/v5.0.tar.gz 解压到项目中.
非模块化安装见 https://github.com/tecbot/gorocksdb#install
注意: 测试发现gorocksdb只支持动态库, 记得修改用户目录的路径.