Skip to content

Commit 9a597dc

Browse files
committed
Installation instructions for CentOS
1 parent e57f0cc commit 9a597dc

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

INSTALL.md

+29-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,42 @@ libraries. You are on your own.
1717

1818
## Supported platforms
1919

20-
* **Linux**
20+
* **Linux - Ubuntu**
2121
* Upgrade your gcc to version at least 4.7 to get C++11 support.
22-
* Install gflags. First, try: `sudo apt-get install libgflags-dev`.
22+
* Install gflags. First, try: `sudo apt-get install libgflags-dev`
2323
If this doesn't work and you're using Ubuntu, here's a nice tutorial:
2424
(http://askubuntu.com/questions/312173/installing-gflags-12-04)
2525
* Install snappy. This is usually as easy as:
2626
`sudo apt-get install libsnappy-dev`.
2727
* Install zlib. Try: `sudo apt-get install zlib1g-dev`.
2828
* Install bzip2: `sudo apt-get install libbz2-dev`.
29+
* **Linux - CentOS**
30+
* Upgrade your gcc to version at least 4.7 to get C++11 support:
31+
`yum install gcc47-c++`
32+
* Install gflags:
33+
34+
wget https://gflags.googlecode.com/files/gflags-2.0-no-svn-files.tar.gz
35+
tar -xzvf gflags-2.0-no-svn-files.tar.gz
36+
cd gflags-2.0
37+
./configure && make && sudo make install
38+
39+
* Install snappy:
40+
41+
wget https://snappy.googlecode.com/files/snappy-1.1.1.tar.gz
42+
tar -xzvf snappy-1.1.1.tar.gz
43+
cd snappy-1.1.1
44+
./configure && make && sudo make install
45+
46+
* Install zlib:
47+
48+
sudo yum install zlib
49+
sudo yum install zlib-devel
50+
51+
* Install bzip2:
52+
53+
sudo yum install bzip2
54+
sudo yum install bzip2-devel
55+
2956
* **OS X**:
3057
* Install latest C++ compiler that supports C++ 11:
3158
* Update XCode: run `xcode-select --install` (or install it from XCode App's settting).

0 commit comments

Comments
 (0)