Building Apache Thrift on CentOS 6.5
2015-02-09 22:35
337 查看
Building Apache Thrift on CentOS 6.5
Starting with a minimal installation, the following steps are required to build Apache Thrift on Centos 6.5. This example builds from source, using the current development master branch. These instructions should also work with Apache Thrift releases beginningwith 0.9.2.
Update the System
sudo yum -y update
Install the Platform Development Tools
sudo yum -y groupinstall "Development Tools"
Upgrade autoconf/automake/bison
sudo yum install -y wget
Upgrade autoconf
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz tar xvf autoconf-2.69.tar.gz cd autoconf-2.69 ./configure --prefix=/usr make sudo make install cd ..
Upgrade automake
wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz tar xvf automake-1.14.tar.gz cd automake-1.14 ./configure --prefix=/usr make sudo make install cd ..
Upgrade bison
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz tar xvf bison-2.5.1.tar.gz cd bison-2.5.1 ./configure --prefix=/usr make sudo make install cd ..
Add Optional C++ Language Library Dependencies
All languages require the Apache Thrift IDL Compiler and at this point everything needed to make the IDL Compiler is installed (if you only need the compiler you can skip to the Build step).If you will be developing Apache Thrift clients/servers in C++ you will also need additional packages to support the C++ shared library build.
Install C++ Lib Dependencies
sudo yum -y install libevent-devel zlib-devel openssl-devel
Upgrade Boost
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz tar xvf boost_1_55_0.tar.gz cd boost_1_55_0 ./bootstrap.sh sudo ./b2 install
Build and Install the Apache Thrift IDL Compiler
git clone https://git-wip-us.apache.org/repos/asf/thrift.git cd thrift ./bootstrap.sh ./configure --with-lua=no make sudo make install
This will build the compiler (thrift/compiler/cpp/thrift --version) and any language libraries supported. The make install step installs the compiler on the path: /usr/local/bin/thrift You can use the ./configure --enable-libs=no switch to build the Apache
Thrift IDL Compiler only without lib builds. To run tests use "make check".
This snippet was generated by Apache Thrift's source tree docs: <a href="http://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=doc/install/centos.md;hb=HEAD" <="" a="" style="color: rgb(0, 136, 204); text-decoration: none;">doc/install/centos.md
相关文章推荐
- Building Apache Thrift on CentOS 6.5
- Building Apache Thrift on CentOS 6.5
- Building Apache Thrift on CentOS 6.5
- rpm rebuild apache2.4 on centos 6.5
- Centos6.5 安装Apache下的Thrift
- Install LAMP on CentOS 6.5 及apache加固
- CentOS6.5安装redmine+apache记录
- CentOS 6.5 Apache+SVN配置
- Centos 64位 Install certificate on apache 即走https协议
- Centos 64位 Install certificate on apache 即走https协议
- CentOS6.5搭建SVN服务器(Apache+SVN)
- Install Zabbix 2.2.1 on CentOS 6.5
- CentOS 6.5 使用Apache的VirtualHost映射SVN端口
- Install Apache OpenOffice 3.4.1 on RHEL/CentOS 6.3/5.8 and Fedora 17/16
- Install Zabbix Proxy on CentOS 6.5
- CentOS 6.5 系统 LAMP(Apache+MySQL+PHP)安装步骤
- Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 & Fedora 19-12 [转]
- Centos 64位 Install certificate on apache 即走https协议
- Building 32-bit Wine on a 64-bit (x86-64) CentOS
- How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6 【Reliable】