forked from facebook/rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make util/env_posix.cc work under mac
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
- Loading branch information
Showing
11 changed files
with
241 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.