|
|
@ -17,15 +17,42 @@ libraries. You are on your own. |
|
|
|
|
|
|
|
|
|
|
|
## Supported platforms |
|
|
|
## Supported platforms |
|
|
|
|
|
|
|
|
|
|
|
* **Linux** |
|
|
|
* **Linux - Ubuntu** |
|
|
|
* Upgrade your gcc to version at least 4.7 to get C++11 support. |
|
|
|
* Upgrade your gcc to version at least 4.7 to get C++11 support. |
|
|
|
* Install gflags. First, try: `sudo apt-get install libgflags-dev`. |
|
|
|
* Install gflags. First, try: `sudo apt-get install libgflags-dev` |
|
|
|
If this doesn't work and you're using Ubuntu, here's a nice tutorial: |
|
|
|
If this doesn't work and you're using Ubuntu, here's a nice tutorial: |
|
|
|
(http://askubuntu.com/questions/312173/installing-gflags-12-04) |
|
|
|
(http://askubuntu.com/questions/312173/installing-gflags-12-04) |
|
|
|
* Install snappy. This is usually as easy as: |
|
|
|
* Install snappy. This is usually as easy as: |
|
|
|
`sudo apt-get install libsnappy-dev`. |
|
|
|
`sudo apt-get install libsnappy-dev`. |
|
|
|
* 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`. |
|
|
|
|
|
|
|
* **Linux - CentOS** |
|
|
|
|
|
|
|
* Upgrade your gcc to version at least 4.7 to get C++11 support: |
|
|
|
|
|
|
|
`yum install gcc47-c++` |
|
|
|
|
|
|
|
* Install gflags: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wget https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz |
|
|
|
|
|
|
|
tar -xzvf gflags-2.0-no-svn-files.tar.gz |
|
|
|
|
|
|
|
cd gflags-2.0 |
|
|
|
|
|
|
|
./configure && make && sudo make install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Install snappy: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wget https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz |
|
|
|
|
|
|
|
tar -xzvf snappy-1.1.1.tar.gz |
|
|
|
|
|
|
|
cd snappy-1.1.1 |
|
|
|
|
|
|
|
./configure && make && sudo make install |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Install zlib: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sudo yum install zlib |
|
|
|
|
|
|
|
sudo yum install zlib-devel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Install bzip2: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sudo yum install bzip2 |
|
|
|
|
|
|
|
sudo yum install bzip2-devel |
|
|
|
|
|
|
|
|
|
|
|
* **OS X**: |
|
|
|
* **OS X**: |
|
|
|
* Install latest C++ compiler that supports C++ 11: |
|
|
|
* Install latest C++ compiler that supports C++ 11: |
|
|
|
* Update XCode: run `xcode-select --install` (or install it from XCode App's settting). |
|
|
|
* Update XCode: run `xcode-select --install` (or install it from XCode App's settting). |
|
|
|