install python rocksdb on ubuntu 16.04
it doesn’t work even pip install succeeded
python-rocksdb requires rocksdb installed in the system.
- setup rocksdb in the system
- clone rocksdb repositery:
git clone git@github.com:facebook/rocksdb.git - checkout v5.3.3. (master branch might not work with python-rocksdb due to incompatible code)
- instal dependencies:
sudo apt install install libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev‘liblz4-dev’ is needed but it doesn’t show up inpython-rocksdbinstall guide. make shared_libsudo make install-shared INSTALL_PATH=/usr
- clone rocksdb repositery:
- install
python-rocksdbpip install python-rocksdb. is should run smoothly