Last active
May 8, 2019 05:16
-
-
Save IaroslavR/364850e3dcde7004125a to your computer and use it in GitHub Desktop.
prepare leveldb on CentOS 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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