1.下载安装包:thrift-0.9.3.tar.gz
2.解压:]# tar xvzf thrift-0.9.3.tar.gz
得到:thrift-0.9.3目录
3.yum安装:# yum install boost-devel-static libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev ant
4. 运行软件根目录下的configure脚本:# ./configure --with-cpp --with-boost --with-python --without-csharp --with-java --without-erlang --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go
如果在此第四步baoc报错:configure: error: "Error: libcrypto required."
解决方法:yum -y install openssl openssl-devel
5.使用make命令进行编译:make
6.使用make install命令进行安装:make install
本文详细介绍了如何从源代码安装Thrift 0.9.3版本,包括下载安装包、解压、依赖安装、配置、编译及安装等步骤。特别注意,若在配置过程中遇到libcrypto缺失的错误,可通过yum安装openssl和openssl-devel来解决。

2586

被折叠的 条评论
为什么被折叠?



