1. 安装杂项
yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel
2. 安装boost
直接用yum安装boost,后续会报错
error: /usr/local/lib64/libboost_unit_test_framework.a: No such file or directory
下载链接
https://jaist.dl.sourceforge.net/project/boost/boost/1.66.0/boost_1_66_0.tar.bz2
解压并进入目录
sudo ./bootstrap.sh --prefix=/usr/local/boost
sudo ./b2
sudo ./b2 install -j24