You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2014/05/30 14:43:32 UTC

svn commit: r1598569 - /thrift/cms-site/trunk/content/docs/install/centos.md

Author: roger
Date: Fri May 30 12:43:31 2014
New Revision: 1598569

URL: http://svn.apache.org/r1598569
Log:
use snippet from source

Modified:
    thrift/cms-site/trunk/content/docs/install/centos.md

Modified: thrift/cms-site/trunk/content/docs/install/centos.md
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/content/docs/install/centos.md?rev=1598569&r1=1598568&r2=1598569&view=diff
==============================================================================
--- thrift/cms-site/trunk/content/docs/install/centos.md (original)
+++ thrift/cms-site/trunk/content/docs/install/centos.md Fri May 30 12:43:31 2014
@@ -2,68 +2,4 @@
 title: "Centos Install"
 kind: doc
 ---
-## CentOS setup
-The following command installs the required tools and libraries from the base repository needed to build and install the Apache Thrift compiler on a CentOS6/RHEL6 Linux based system. 
-
-	sudo yum install automake libtool flex bison pkgconfig gcc-c++ 
-
-The base version of autoconf installed is presently 2.63, however Apache Thrift requires 2.65. A newer version must be installed from a nonstandard repository. For example:
-
-	sudo curl ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/monkeyiq:/centos6updates/CentOS_CentOS-6/noarch/autoconf-2.69-12.2.noarch.rpm > autoconf-2.69-12.2.noarch.rpm
-
-	sudo yum install autoconf-2.69-12.2.noarch.rpm
-
-To compile and install the Apache Thrift IDL compiler from the development source you will need to install git, clone the development master, then configure and build the IDL Compiler. For example:
-
-	sudo yum install git
-	git clone https://git-wip-us.apache.org/repos/asf/thrift.git
-	cd thrift
-	./bootstrap.sh
-	./configure --enable-libs=no
-	make
-	sudo make install
-
-This will build the compiler and install it on the path: /usr/local/bin/thrift
-
-### Adding Support for the C++ Library
-
-The Apache Thrift IDL Compiler can generate code for any supported language. Each language also requires an Apache Thrift support library. These support libraries must be compiled in compiled languages. To build the Apache Thrift C++ library, the following support libraries must be installed: Boost, OpenSSL and ZLib. Optionally support for libevent can be installed to enable the nonblocking server library. To install the required base packages:
-
-	sudo yum install libevent-devel zlib-devel openssl-devel
-
-Centos currently supplies 4.4.7 as the highest version of gcc. The Apache Thrift C++ libraries require a newer gcc version. RHEL/Centos provides a Software Collection facility (scl) which allows newer versions of development tools to be installed alongside the older versions required by the system. The following steps install g++ 4.7 and related tools alongside the base g++ 4.4.7:
-
-	sudo yum install wget
-	sudo wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -P /etc/yum.repos.d
-	sudo sh -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
-	sudo yum install devtoolset-1.1
-	scl enable devtoolset-1.1 bash
-
-The final step runs the Software Collection tool (scl) and launches a bash shell configured to use the updated tools. You will need to build the Apache Thrift C++ library and user programs from within the scl shell. For more information: https://access.redhat.com/site/documentation/en-US/Red_Hat_Developer_Toolset/1/html-single/Software_Collections_Guide/
-
-The Apache Thrift C++ library also requires a newer version of Boost than that supplied by the standard Centos repos. Here is an example installing the latest version of Boost (be sure to install Boost within the scl shell configured for g++ 4.7):
-
-	wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
-	tar -xzvf boost_1_55_0.tar.gz
-	cd boost_1_55_0
-	./bootstrap.sh
-	sudo ./b2 install
-
-With the dependencies installed you can build and install the Apache Thrift C++ libraries within the scl shell:
-
-	cd ~/thrift
-	./bootstrap.sh
-	./configure --with-lua=no
-	make
-	sudo make install
-
-The Apache Thrift C++ libraries will be installed in /usr/local/lib. Once installed Apache Thrift RPC applications written in C++ can be compiled and linked with commands something like this:
-
-	thrift -gen cpp myService.thrift
-	g++  -Wall  -std=c++11  server.cpp  gen-cpp/myService.cpp  -lthrift  -Wl,-rpath,/usr/local/lib  -oserver
-
-#### Additional reading
-
-For more information on the requirements see: [Apache Thrift Requirements](/docs/install)
-
-For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource)
+[snippet:path=doc/install/centos.md]
\ No newline at end of file