mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
97d8e573a6
Summary: This diff invoves some more complicated issues in the posix environment. Test Plan: works under mac os. will need to verify dev box. Reviewers: dhruba Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D14061
26 lines
731 B
Bash
Executable file
26 lines
731 B
Bash
Executable file
#!/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"
|