install Thrift on CentOS 6.5

放肆的年华 提交于 2019-12-01 15:41:44
更新系统
1
yum update
安装平台开发包
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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!