更新系统
安装平台开发包
1 | yum groupinstall "Development Tools" |
更新 autoconf
1234567 | wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gztar xvf autoconf-2.69.tar.gzcd autoconf-2.69./configure --prefix=/usrmakemake installcd .. |
更新automake
1234567 | wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gztar xvf automake-1.14.tar.gzcd automake-1.14./configure --prefix=/usrmakemake installcd .. |
更新bison
1234567 | wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gztar xvf bison-2.5.1.tar.gzcd bison-2.5.1./configure --prefix=/usrmakemake installcd .. 大专栏 install Thrift on CentOS 6.5 |
添加C++依赖包
1 | yum install libevent-devel zlib-devel openssl-devel |
安装boost
12345 | wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gztar xvf boost_1_53_0.tar.gzcd boost_1_53_0./bootstrap.sh./b2 install |
安装Thrift
123456 | git clone https://github.com/apache/thrift.gitcd thrift./bootstrap.sh./configure --with-lua=nomakemake install |
问题
1234567891011 | # 错误提示g++: error: /usr/local/lib/libboost_unit_test_framework.a: No such file or directory# 解决yum install boost-devel-static# 执行make任出现该问题,后来发现安装位置不在 /usr/local/lib/find / -name "libboost_unit_test_framework.a"# 在 /usr/lib64/ 目录下# 建立软连接ln -s /usr/lib64/libboost_unit_test_framework.a /usr/local/lib/libboost_unit_test_framework.a |
来源:https://www.cnblogs.com/wangziqiang123/p/11691228.html