Skip to content

Instantly share code, notes, and snippets.

@toolslive
Last active August 29, 2015 14:25
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/56b9fae64b27d3e00971 to your computer and use it in GitHub Desktop.
Save toolslive/56b9fae64b27d3e00971 to your computer and use it in GitHub Desktop.
helper script for orocksdb
#!/usr/bin/env bash
set -x
echo $(g++ --version)
shared_lib_file="/usr/local/lib/librocksdb.so"
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-3.9.1
CXX=g++-4.8 make shared_lib
sudo cp ./librocksdb.so "$shared_lib_file"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment