1、不联网安装
1.1安装依赖包
bzip2-devel
keyutils-libs-devel
libcom_err-devel
libsepol-devel
pcre-devel
pkgconfig
libselinux-devel
libverto-devel
libcom_err-devel
libselinux-devel
libverto-devel
krb5-devel
zlib-devel
openssl-devel
python-devel
libstdc++
libstdc++-devel
gcc-c++
m4
autoconf
perl-libs
perl-Thread-Queue
perl
bison
libevent-devel
llvm
llvm-libs
clang
automake
flex
libtool
大部分依赖包可以在安装盘里找到
1.2 安装boost
tar -xzvf boost_1_60_0.tar.gz
cd boost_1_60_0
./boostrap.sh --with-toolset=clang
./b2 install --toolset=clang --cxxflags="-std=c++11" --prefix=/usr/local
1.3安装thrift
tar -xzvf thrift-0.9.3
./configure --libdir=/usr/lib --without-java
make
make install
2、通过yum安装
1.1 update the System
sudo yum -y update
1.2 install the platform Development Tools
sudo yum -y groupinstall "Development Tools"
1.3
update autoconf/automake/bison