Add more guide for mac users.

This commit is contained in:
Kai Liu 2013-11-20 14:54:53 -08:00
parent 618250b5c5
commit f5acb2eebb

View File

@ -26,9 +26,11 @@ libraries. You are on your own.
* Install zlib. Try: `sudo apt-get install zlib1g-dev`. * Install zlib. Try: `sudo apt-get install zlib1g-dev`.
* Install bzip2: `sudo apt-get install libbz2-dev`. * Install bzip2: `sudo apt-get install libbz2-dev`.
* **OS X**: * **OS X**:
* We encourage you to install latest C++ compiler via [homebrew](http://brew.sh/). * Install latest C++ compiler that supports C++ 11:
* If you're first time developer in MacOS, please run: `xcode-select --install` in your command line. # Update XCode: run `xcode-select --install` (or install it from XCode App's settting).
* run `brew tap homebrew/dupes; brew install gcc47 --use-llvm` to install gcc 4.7 (or higher). # Install via [homebrew](http://brew.sh/).
* If you're first time developer in MacOS, you still need to run: `xcode-select --install` in your command line.
* run `brew tap homebrew/dupes; brew install gcc47 --use-llvm` to install gcc 4.7 (or higher).
* Install zlib, bzip2 and snappy libraries for compression. * Install zlib, bzip2 and snappy libraries for compression.
* Install gflags. We have included a script * Install gflags. We have included a script
`build_tools/mac-install-gflags.sh`, which should automatically install it. `build_tools/mac-install-gflags.sh`, which should automatically install it.