fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
731 B
25 lines
731 B
#!/bin/sh
|
|
# Install gflags for mac developers.
|
|
|
|
set -e
|
|
|
|
DIR=`mktemp -d /tmp/rocksdb_gflags_XXXX`
|
|
|
|
cd $DIR
|
|
wget https://gflags.googlecode.com/files/gflags-2.0.tar.gz
|
|
tar xvfz gflags-2.0.tar.gz
|
|
cd gflags-2.0
|
|
|
|
./configure
|
|
make
|
|
make install
|
|
|
|
# Add include/lib path for g++
|
|
echo 'export LIBRARY_PATH+=":/usr/local/lib"' >> ~/.bash_profile
|
|
echo 'export CPATH+=":/usr/local/include"' >> ~/.bash_profile
|
|
|
|
echo ""
|
|
echo "-----------------------------------------------------------------------------"
|
|
echo "| Installation Completed |"
|
|
echo "-----------------------------------------------------------------------------"
|
|
echo "Please run `. ~/bash_profile` to be able to compile with gflags"
|
|
|