Skip to content

Instantly share code, notes, and snippets.

@toolslive
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toolslive/22958251b056dcb3131a to your computer and use it in GitHub Desktop.
Save toolslive/22958251b056dcb3131a to your computer and use it in GitHub Desktop.
helper script for orocksdb (3.12)
#!/usr/bin/env bash
set -x
echo $(gcc --version)
VERSION=3.12
shared_lib_file="/usr/local/lib/librocksdb.so.${VERSION}"
if [ -e $shared_lib_file ]; then
echo "$shared_lib_file exists"
else
echo "cloning, building, installing rocksdb"
git clone https://github.com/facebook/rocksdb/
cd rocksdb
git checkout tags/rocksdb-${VERSION}
CXX=g++-4.8 make shared_lib
sudo make uninstall
sudo make install-shared
sudo ldconfig
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment