-
Notifications
You must be signed in to change notification settings - Fork 1
installing LevelDB
Robin Gist edited this page Jun 16, 2018
·
1 revision
brew install leveldb
lifted from https://stackinstall.com/how-to-install-leveldb-on-ubuntu-16-04/
mkdir -p "$HOME/tmp/tar_gz"
cd "$HOME/tmp/tar_gz"
if [[ ! -f "$HOME/tmp/tar_gz/leveldb-1.20.tar.gz" ]]; then
`wget -O "$HOME/tmp/tar_gz/leveldb-1.20.tar.gz" "https://github.com/google/leveldb/archive/v1.20.tar.gz"
fi
tar xf "$HOME/tmp/tar_gz/leveldb-1.20.tar.gz"
cd "$HOME/tmp/tar_gz/leveldb-1.20"
make clean
make distclean
make
cd "$HOME/tmp/tar_gz/leveldb-1.20"
sudo scp -r out-static/lib* out-shared/lib* "/usr/local/lib"
cd "$HOME/tmp/tar_gz/leveldb-1.20/include"
sudo scp -r leveldb "/usr/local/include"
sudo ldconfig