Skip to content

Instantly share code, notes, and snippets.

@IaroslavR
Last active May 8, 2019 05:16
Show Gist options
  • Save IaroslavR/364850e3dcde7004125a to your computer and use it in GitHub Desktop.
Save IaroslavR/364850e3dcde7004125a to your computer and use it in GitHub Desktop.
prepare leveldb on CentOS 6
# prepare leveldb on CentOS 6
# https://techoverflow.net/blog/2012/12/14/compiling-installing-leveldb-on-linux/
# https://plyvel.readthedocs.org/en/latest/user.html
sudo yum install -y snappy-devel
cd ~
mkdir src
cd src
git clone https://code.google.com/p/leveldb/
cd leveldb/
make
sudo cp --preserve=links libleveldb.* /usr/local/lib
sudo cp -r include/leveldb /usr/local/include/
sudo ldconfig
echo "LD_LIBRARY_PATH=/usr/local/lib/" >> /etc/environment
source /etc/environment
pip install plyvel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment