安装thrift全过程

为了研究基于thrift的RPC框架,其实,是想自己基于thrift写一个微服务的platform。首先就是安装Thrift,便于IDL架构生成java的接口文件。多的不说了,开始install的过程吧。

我的机器,环境信息如下: 联想笔记本,Centos6.8的系统。

步骤:

1. 安装平台开发工具

 yum -y groupinstall "Development Tools"

2. 安装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/local
make
make install

3. 安装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/local
make
make install

4. 安装bison

 wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5..tar.gz
cd bison-2.5.
./configure --prefix=/usr/local
make
make install

5. 安装C++库依赖相关的开发包

 yum -y install libevent-devel zlib-devel openssl-devel

6. 安装boost

 wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gz
tar xvf boost_1_53_0.tar.gz
cd boost_1_53_0
./bootstrap.sh
./b2

注意,按照上面这些步骤操作,是不会成功的,在安装boost过程中的最后一步,会出一大堆的错误,错误信息满屏幕的刷。。。。 好多关于gcc-c++相关的错误,还有就是python相关的错误。一顿帖子的研究,最终发现,是C++库以及依赖的安装有问题,基于上面的基础,再执行一下下面的操作补充安装一下依赖包:

 [root@CloudGame boost_1_53_0]# yum install gcc gcc-c++ bzip2 bzip2-devel bzip2-libs python-devel -y

再执行./bootstrap.sh以及./b2,就不再出错了,最终得到下面的report,表示boost安装成功:

 ..........................
libs/python/src/object/function.cpp:: warning: dereferencing type-punned pointer will break strict-aliasing rules
libs/python/src/object/function.cpp:: warning: dereferencing type-punned pointer will break strict-aliasing rules
./boost/python/refcount.hpp: In function ‘PyObject* boost::python::objects::function_get_class(PyObject*, void*)’:
./boost/python/refcount.hpp:: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules
./boost/python/refcount.hpp:: warning: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules
libs/python/src/object/function.cpp:: note: initialized from here
libs/python/src/object/function.cpp: In constructor ‘boost::python::objects::function::function(const boost::python::objects::py_function&, const boost::python::detail::keyword*, unsigned int)’:
libs/python/src/object/function.cpp:: warning: dereferencing pointer ‘function_type.’ does break strict-aliasing rules
libs/python/src/object/function.cpp:: note: initialized from here
libs/python/src/object/function.cpp:: warning: dereferencing pointer ‘function_type.’ does break strict-aliasing rules
libs/python/src/object/function.cpp:: note: initialized from here
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object/inheritance.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object/life_support.o
libs/python/src/object/life_support.cpp: In function ‘PyObject* boost::python::objects::make_nurse_and_patient(PyObject*, PyObject*)’:
libs/python/src/object/life_support.cpp:: warning: dereferencing type-punned pointer will break strict-aliasing rules
libs/python/src/object/life_support.cpp:: warning: dereferencing type-punned pointer will break strict-aliasing rules
libs/python/src/object/life_support.cpp:: warning: dereferencing pointer ‘life_support_type.’ does break strict-aliasing rules
libs/python/src/object/life_support.cpp:: note: initialized from here
libs/python/src/object/life_support.cpp:: warning: dereferencing pointer ‘life_support_type.’ does break strict-aliasing rules
libs/python/src/object/life_support.cpp:: note: initialized from here
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object/pickle_support.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/errors.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/module.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/converter/builtin_converters.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/converter/arg_to_python_base.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object/iterator.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object/stl_iterator.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object_protocol.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object_operators.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/wrapper.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/import.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/exec.o
gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/object/function_doc_signature.o
gcc.archive bin.v2/libs/python/build/gcc-4.4./release/link-static/threading-multi/libboost_python.a
common.copy stage/lib/libboost_python.a
...updated targets... The Boost C++ Libraries were successfully built! The following directory should be added to compiler include paths: /home/MyDownload/boost_1_53_0 The following directory should be added to linker library paths: /home/MyDownload/boost_1_53_0/stage/lib

7. 安装thirft compiler

按照网上传遍大江南北的做法,我失败了,这个网上千篇一律的版本是这么干的:

 git clone https://git-wip-us.apache.org/repos/asf/thrift.git
cd thrift
./bootstrap.sh
./configure --with-lua=no
make
make install

我在./configure的时候就失败了,错误信息如下:

 [root@CloudGame thrift]# ./configure --with-lua=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '' is supported by ustar format... yes
checking whether GID '' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
./configure: line : PKG_PROG_PKG_CONFIG: command not found
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments...
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether make sets $(MAKE)... (cached) yes
checking for bison... yes
checking for bison version >= 2.5... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for ranlib... (cached) ranlib
checking whether g++ supports C++ features by default... no
checking whether g++ supports C++ features with -std=c++... no
checking whether g++ supports C++ features with -std=c++0x... no
configure: No compiler with C++ support was found
./configure: line 17120: syntax error near unexpected token `QT,'
./configure: line 17120: ` PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwork >= 4.3, have_qt=yes, have_qt=no)'

研究了下那个configure文件,太长了,没有深入调研,转而去http://thrift.apache.org/tutorial/ 网站找技术支持,发现哪儿有点信息,于是我重新搞了一边。

先下载thrift 0.9.3版本:

 wget http://apache.fayea.com/thrift/0.9.3/thrift-0.9.3.tar.gz

然后,解压并执行./configure --with-lua=no,得到下面的信息:

 [root@CloudGame thrift-0.9.]# ./configure --with-lua=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '' is supported by ustar format... yes
checking whether GID '' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments...
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether make sets $(MAKE)... (cached) yes
checking for bison... yes
checking for bison version >= 2.5... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking for ranlib... (cached) ranlib
checking whether g++ supports C++ features by default... no
checking whether g++ supports C++ features with -std=c++... no
checking whether g++ supports C++ features with -std=c++0x... no
configure: No compiler with C++ support was found
checking for boostlib >= 1.53.... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking for libevent >= 1.0... yes
checking for zlib >= 1.2.... yes
checking for QT... yes
checking for moc-qt4... /usr/bin/moc-qt4
checking for QT5... no
checking for GLIB... yes
checking for GOBJECT... yes
checking for MONO... no
checking for MONO... no
checking for MONO... no
checking for javac and java... yes
checking for ant... no
checking for ant version > 1.7... expr: syntax error
no
checking for erl... no
checking for erlc... no
checking for nodejs... no
checking for node... no
checking for npm... no
checking for trial... no
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2./site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2./site-packages
checking for perl... /usr/bin/perl
checking for perl module Bit::Vector... no
checking for perl module Class::Accessor... no
checking for php... no
checking for phpunit... no
checking for ruby... no
checking for bundle... no
checking for cabal... no
checking for runhaskell... no
checking for go... no
checking for haxe... no
checking for DMD... no
checking for library containing strerror... none required
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX. compatible... yes
checking return type of signal handlers... void
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for unistd.h... (cached) yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/rand.h usability... yes
checking openssl/rand.h presence... yes
checking for openssl/rand.h... yes
checking openssl/x509v3.h usability... yes
checking openssl/x509v3.h presence... yes
checking for openssl/x509v3.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for pthread_create in -lpthread... yes
checking for clock_gettime in -lrt... yes
checking for setsockopt in -lsocket... no
checking for BN_init in -lcrypto... yes
checking for SSL_ctrl in -lssl... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether AI_ADDRCONFIG is declared... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for strtoul... yes
checking for bzero... yes
checking for ftruncate... yes
checking for gethostbyname... yes
checking for gethostbyname_r... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for realpath... yes
checking for select... yes
checking for setlocale... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for sqrt... yes
checking for alarm... yes
checking for clock_gettime... yes
checking for sched_get_priority_min... yes
checking for sched_get_priority_max... yes
checking for inet_ntoa... yes
checking for pow... yes
checking the behavior of a signed right shift... arithmetic
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compiler/cpp/Makefile
config.status: creating compiler/cpp/version.h
config.status: creating compiler/cpp/src/windows/version.h
config.status: creating lib/Makefile
config.status: creating lib/cpp/Makefile
config.status: creating lib/cpp/test/Makefile
config.status: creating lib/cpp/thrift-nb.pc
config.status: creating lib/cpp/thrift-z.pc
config.status: creating lib/cpp/thrift-qt.pc
config.status: creating lib/cpp/thrift-qt5.pc
config.status: creating lib/cpp/thrift.pc
config.status: creating lib/c_glib/Makefile
config.status: creating lib/c_glib/thrift_c_glib.pc
config.status: creating lib/c_glib/test/Makefile
config.status: creating lib/csharp/Makefile
config.status: creating lib/csharp/test/ThriftTest/Makefile
config.status: creating lib/d/Makefile
config.status: creating lib/d/test/Makefile
config.status: creating lib/erl/Makefile
config.status: creating lib/go/Makefile
config.status: creating lib/go/test/Makefile
config.status: creating lib/haxe/test/Makefile
config.status: creating lib/hs/Makefile
config.status: creating lib/java/Makefile
config.status: creating lib/js/test/Makefile
config.status: creating lib/nodejs/Makefile
config.status: creating lib/perl/Makefile
config.status: creating lib/perl/test/Makefile
config.status: creating lib/php/Makefile
config.status: creating lib/php/test/Makefile
config.status: creating lib/py/Makefile
config.status: creating lib/rb/Makefile
config.status: creating lib/lua/Makefile
config.status: creating test/Makefile
config.status: creating test/c_glib/Makefile
config.status: creating test/cpp/Makefile
config.status: creating test/erl/Makefile
config.status: creating test/go/Makefile
config.status: creating test/haxe/Makefile
config.status: creating test/hs/Makefile
config.status: creating test/php/Makefile
config.status: creating test/perl/Makefile
config.status: creating test/py/Makefile
config.status: creating test/py.twisted/Makefile
config.status: creating test/py.tornado/Makefile
config.status: creating test/rb/Makefile
config.status: creating tutorial/Makefile
config.status: creating tutorial/c_glib/Makefile
config.status: creating tutorial/cpp/Makefile
config.status: creating tutorial/go/Makefile
config.status: creating tutorial/haxe/Makefile
config.status: creating tutorial/hs/Makefile
config.status: creating tutorial/java/Makefile
config.status: creating tutorial/js/Makefile
config.status: creating tutorial/nodejs/Makefile
config.status: creating tutorial/py/Makefile
config.status: creating tutorial/py.twisted/Makefile
config.status: creating tutorial/py.tornado/Makefile
config.status: creating tutorial/rb/Makefile
config.status: creating config.h
config.status: creating lib/cpp/src/thrift/config.h
config.status: executing depfiles commands
config.status: executing libtool commands thrift 0.9. Building C++ Library ......... : yes
Building C (GLib) Library .... : yes
Building Java Library ........ : no
Building C# Library .......... : no
Building Python Library ...... : no
Building Ruby Library ........ : no
Building Haxe Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : no
Building PHP Library ......... : no
Building Erlang Library ...... : no
Building Go Library .......... : no
Building D Library ........... : no
Building NodeJS Library ...... : no
Building Lua Library ......... : no C++ Library:
Build TZlibTransport ...... : yes
Build TNonblockingServer .. : yes
Build TQTcpServer (Qt4) .... : yes
Build TQTcpServer (Qt5) .... : no If something is missing that you think should be present,
please skim the output of configure to find the missing
component. Details are present in config.log.

这个看上去,是不是很nice。。。废话不多说,继续往下走。。。 执行make

 ./src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
./src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
./src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
./src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
./src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
In file included from ./src/thrift/server/TNonblockingServer.h:,
from src/thrift/server/TNonblockingServer.cpp::
./src/thrift/concurrency/ThreadManager.h::: warning: use of C99 long long integer constant
./src/thrift/concurrency/ThreadManager.h::: warning: use of C99 long long integer constant
In file included from src/thrift/server/TNonblockingServer.cpp::
11 ./src/thrift/server/TNonblockingServer.h:41:33: error: event2/event_compat.h: No such file or directory
12 ./src/thrift/server/TNonblockingServer.h:42:33: error: event2/event_struct.h: No such file or directory
./src/thrift/server/TNonblockingServer.h::: warning: use of C99 long long integer constant
make[]: *** [src/thrift/server/libthriftnb_la-TNonblockingServer.lo] Error
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp'
make[]: *** [all-recursive] Error
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp'
make[]: *** [all-recursive] Error
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib'
make[]: *** [all-recursive] Error
make[]: Leaving directory `/home/MyDownload/thrift-0.9.'
make: *** [all] Error

还是报错,找不到event2的头文件,这个看上去像是没有libevent相关的东西,继续去官网找找找。。。看http://libevent.org/ 我下载了https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz这个版本,最新的稳定版。

解压,然后:

 ./configure --prefix=/usr/local
make
make install

再继续执行thrift的make。。。耐心点,会花点时间哟

 ...............
../../lib/cpp/src/thrift/TLogging.h::: warning: anonymous variadic macros were introduced in C99
../../lib/cpp/src/thrift/TLogging.h::: warning: anonymous variadic macros were introduced in C99
../../lib/cpp/src/thrift/TLogging.h::: warning: anonymous variadic macros were introduced in C99
../../lib/cpp/src/thrift/TLogging.h::: warning: anonymous variadic macros were introduced in C99
../../lib/cpp/src/thrift/TLogging.h::: warning: anonymous variadic macros were introduced in C99
../../lib/cpp/src/thrift/TLogging.h::: warning: anonymous variadic macros were introduced in C99
In file included from ../../lib/cpp/src/thrift/protocol/TBinaryProtocol.h:,
from CppClient.cpp::
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
../../lib/cpp/src/thrift/protocol/TProtocol.h::: warning: use of C99 long long integer constant
In file included from ../../lib/cpp/src/thrift/transport/TFileTransport.h:,
from ../../lib/cpp/src/thrift/transport/TTransportUtils.h:,
from CppClient.cpp::
../../lib/cpp/src/thrift/concurrency/Monitor.h::: warning: use of C99 long long integer constant
/bin/sh ../../libtool --tag=CXX --mode=link g++ -Wall -Wextra -pedantic -g -O2 -L/usr/local/lib -o TutorialClient CppClient.o libtutorialgencpp.la ../../lib/cpp/libthrift.la -lssl -lcrypto -lrt -lpthread
libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -o .libs/TutorialClient CppClient.o -L/usr/local/lib ./.libs/libtutorialgencpp.a /home/MyDownload/thrift-0.9./lib/cpp/.libs/libthrift.so ../../lib/cpp/.libs/libthrift.so -lssl -lcrypto -lrt -lpthread -Wl,-rpath -Wl,/usr/local/lib
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial'
../compiler/cpp/thrift --gen html -r ../tutorial/tutorial.thrift
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial'
make[]: Entering directory `/home/MyDownload/thrift-0.9.'
make[]: Leaving directory `/home/MyDownload/thrift-0.9.'
make[]: Leaving directory `/home/MyDownload/thrift-0.9.'

这次,看到了make成功的信息了,最后安装一下。

 [root@CloudGame thrift-0.9.]# make install
Making install in compiler/cpp
make[]: Entering directory `/home/MyDownload/thrift-0.9./compiler/cpp'
make install-am
make[]: Entering directory `/home/MyDownload/thrift-0.9./compiler/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./compiler/cpp'
/bin/mkdir -p '/usr/local/bin'
/bin/sh ../../libtool --mode=install /usr/bin/install -c thrift '/usr/local/bin'
libtool: install: /usr/bin/install -c thrift /usr/local/bin/thrift
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./compiler/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./compiler/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./compiler/cpp'
Making install in lib
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib'
Making install in cpp
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/cpp'
Making install in .
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/cpp'
/bin/mkdir -p '/usr/local/lib'
/bin/sh ../../libtool --mode=install /usr/bin/install -c libthrift.la libthriftnb.la libthriftz.la libthriftqt.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libthrift-0.9..so /usr/local/lib/libthrift-0.9..so
libtool: install: (cd /usr/local/lib && { ln -s -f libthrift-0.9..so libthrift.so || { rm -f libthrift.so && ln -s libthrift-0.9..so libthrift.so; }; })
libtool: install: /usr/bin/install -c .libs/libthrift.lai /usr/local/lib/libthrift.la
libtool: install: /usr/bin/install -c .libs/libthriftnb-0.9..so /usr/local/lib/libthriftnb-0.9..so
libtool: install: (cd /usr/local/lib && { ln -s -f libthriftnb-0.9..so libthriftnb.so || { rm -f libthriftnb.so && ln -s libthriftnb-0.9..so libthriftnb.so; }; })
libtool: install: /usr/bin/install -c .libs/libthriftnb.lai /usr/local/lib/libthriftnb.la
libtool: install: /usr/bin/install -c .libs/libthriftz-0.9..so /usr/local/lib/libthriftz-0.9..so
libtool: install: (cd /usr/local/lib && { ln -s -f libthriftz-0.9..so libthriftz.so || { rm -f libthriftz.so && ln -s libthriftz-0.9..so libthriftz.so; }; })
libtool: install: /usr/bin/install -c .libs/libthriftz.lai /usr/local/lib/libthriftz.la
libtool: install: /usr/bin/install -c .libs/libthriftqt-0.9..so /usr/local/lib/libthriftqt-0.9..so
libtool: install: (cd /usr/local/lib && { ln -s -f libthriftqt-0.9..so libthriftqt.so || { rm -f libthriftqt.so && ln -s libthriftqt-0.9..so libthriftqt.so; }; })
libtool: install: /usr/bin/install -c .libs/libthriftqt.lai /usr/local/lib/libthriftqt.la
libtool: install: /usr/bin/install -c .libs/libthrift.a /usr/local/lib/libthrift.a
libtool: install: chmod /usr/local/lib/libthrift.a
libtool: install: ranlib /usr/local/lib/libthrift.a
libtool: install: /usr/bin/install -c .libs/libthriftnb.a /usr/local/lib/libthriftnb.a
libtool: install: chmod /usr/local/lib/libthriftnb.a
libtool: install: ranlib /usr/local/lib/libthriftnb.a
libtool: install: /usr/bin/install -c .libs/libthriftz.a /usr/local/lib/libthriftz.a
libtool: install: chmod /usr/local/lib/libthriftz.a
libtool: install: ranlib /usr/local/lib/libthriftz.a
libtool: install: /usr/bin/install -c .libs/libthriftqt.a /usr/local/lib/libthriftqt.a
libtool: install: chmod /usr/local/lib/libthriftqt.a
libtool: install: ranlib /usr/local/lib/libthriftqt.a
libtool: finish: PATH="/usr/java/jdk1.7.0_79/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/apache-maven-3.3.9/bin:/home/water/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld() and ld.so() manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/include/thrift/async'
/usr/bin/install -c -m src/thrift/async/TAsyncChannel.h src/thrift/async/TAsyncDispatchProcessor.h src/thrift/async/TAsyncProcessor.h src/thrift/async/TAsyncBufferProcessor.h src/thrift/async/TAsyncProtocolProcessor.h src/thrift/async/TConcurrentClientSyncInfo.h src/thrift/async/TEvhttpClientChannel.h src/thrift/async/TEvhttpServer.h '/usr/local/include/thrift/async'
/bin/mkdir -p '/usr/local/include/thrift/concurrency'
/usr/bin/install -c -m src/thrift/concurrency/BoostThreadFactory.h src/thrift/concurrency/Exception.h src/thrift/concurrency/Mutex.h src/thrift/concurrency/Monitor.h src/thrift/concurrency/PlatformThreadFactory.h src/thrift/concurrency/PosixThreadFactory.h src/thrift/concurrency/StdMonitor.cpp src/thrift/concurrency/StdMutex.cpp src/thrift/concurrency/StdThreadFactory.cpp src/thrift/concurrency/StdThreadFactory.h src/thrift/concurrency/Thread.h src/thrift/concurrency/ThreadManager.h src/thrift/concurrency/TimerManager.h src/thrift/concurrency/FunctionRunner.h src/thrift/concurrency/Util.h '/usr/local/include/thrift/concurrency'
/bin/mkdir -p '/usr/local/include/thrift/processor'
/usr/bin/install -c -m src/thrift/processor/PeekProcessor.h src/thrift/processor/StatsProcessor.h src/thrift/processor/TMultiplexedProcessor.h '/usr/local/include/thrift/processor'
/bin/mkdir -p '/usr/local/include/thrift/protocol'
/usr/bin/install -c -m src/thrift/protocol/TBinaryProtocol.h src/thrift/protocol/TBinaryProtocol.tcc src/thrift/protocol/TCompactProtocol.h src/thrift/protocol/TCompactProtocol.tcc src/thrift/protocol/TDebugProtocol.h src/thrift/protocol/TBase64Utils.h src/thrift/protocol/TJSONProtocol.h src/thrift/protocol/TMultiplexedProtocol.h src/thrift/protocol/TProtocolDecorator.h src/thrift/protocol/TProtocolTap.h src/thrift/protocol/TProtocolException.h src/thrift/protocol/TVirtualProtocol.h src/thrift/protocol/TProtocol.h '/usr/local/include/thrift/protocol'
/bin/mkdir -p '/usr/local/include/thrift/qt'
/usr/bin/install -c -m src/thrift/qt/TQIODeviceTransport.h src/thrift/qt/TQTcpServer.h '/usr/local/include/thrift/qt'
/bin/mkdir -p '/usr/local/include/thrift/server'
/usr/bin/install -c -m src/thrift/server/TConnectedClient.h src/thrift/server/TServer.h src/thrift/server/TServerFramework.h src/thrift/server/TSimpleServer.h src/thrift/server/TThreadPoolServer.h src/thrift/server/TThreadedServer.h src/thrift/server/TNonblockingServer.h '/usr/local/include/thrift/server'
/bin/mkdir -p '/usr/local/include/thrift'
/usr/bin/install -c -m ../../config.h src/thrift/thrift-config.h src/thrift/TDispatchProcessor.h src/thrift/Thrift.h src/thrift/TOutput.h src/thrift/TProcessor.h src/thrift/TApplicationException.h src/thrift/TLogging.h src/thrift/cxxfunctional.h src/thrift/TToString.h '/usr/local/include/thrift'
/bin/mkdir -p '/usr/local/include/thrift/transport'
/usr/bin/install -c -m src/thrift/transport/PlatformSocket.h src/thrift/transport/TFDTransport.h src/thrift/transport/TFileTransport.h src/thrift/transport/TSimpleFileTransport.h src/thrift/transport/TServerSocket.h src/thrift/transport/TSSLServerSocket.h src/thrift/transport/TServerTransport.h src/thrift/transport/THttpTransport.h src/thrift/transport/THttpClient.h src/thrift/transport/THttpServer.h src/thrift/transport/TSocket.h src/thrift/transport/TPipe.h src/thrift/transport/TPipeServer.h src/thrift/transport/TSSLSocket.h src/thrift/transport/TSocketPool.h src/thrift/transport/TVirtualTransport.h src/thrift/transport/TTransport.h src/thrift/transport/TTransportException.h src/thrift/transport/TTransportUtils.h src/thrift/transport/TBufferTransports.h src/thrift/transport/TShortReadTransport.h src/thrift/transport/TZlibTransport.h '/usr/local/include/thrift/transport'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m thrift.pc thrift-nb.pc thrift-z.pc thrift-qt.pc '/usr/local/lib/pkgconfig'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp'
Making install in test
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/cpp/test'
make install-am
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/cpp/test'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/cpp/test'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/cpp'
Making install in c_glib
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib'
Making install in .
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib'
/bin/mkdir -p '/usr/local/lib'
/bin/sh ../../libtool --mode=install /usr/bin/install -c libthrift_c_glib.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libthrift_c_glib.so.0.0. /usr/local/lib/libthrift_c_glib.so.0.0.
libtool: install: (cd /usr/local/lib && { ln -s -f libthrift_c_glib.so.0.0. libthrift_c_glib.so. || { rm -f libthrift_c_glib.so. && ln -s libthrift_c_glib.so.0.0. libthrift_c_glib.so.; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libthrift_c_glib.so.0.0. libthrift_c_glib.so || { rm -f libthrift_c_glib.so && ln -s libthrift_c_glib.so.0.0. libthrift_c_glib.so; }; })
libtool: install: /usr/bin/install -c .libs/libthrift_c_glib.lai /usr/local/lib/libthrift_c_glib.la
libtool: install: /usr/bin/install -c .libs/libthrift_c_glib.a /usr/local/lib/libthrift_c_glib.a
libtool: install: chmod /usr/local/lib/libthrift_c_glib.a
libtool: install: ranlib /usr/local/lib/libthrift_c_glib.a
libtool: finish: PATH="/usr/java/jdk1.7.0_79/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/apache-maven-3.3.9/bin:/home/water/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld() and ld.so() manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/local/include/thrift/c_glib/processor'
/usr/bin/install -c -m src/thrift/c_glib/processor/thrift_processor.h src/thrift/c_glib/processor/thrift_dispatch_processor.h '/usr/local/include/thrift/c_glib/processor'
/bin/mkdir -p '/usr/local/include/thrift/c_glib/protocol'
/usr/bin/install -c -m src/thrift/c_glib/protocol/thrift_protocol.h src/thrift/c_glib/protocol/thrift_protocol_factory.h src/thrift/c_glib/protocol/thrift_binary_protocol.h src/thrift/c_glib/protocol/thrift_binary_protocol_factory.h '/usr/local/include/thrift/c_glib/protocol'
/bin/mkdir -p '/usr/local/include/thrift/c_glib/server'
/usr/bin/install -c -m src/thrift/c_glib/server/thrift_server.h src/thrift/c_glib/server/thrift_simple_server.h '/usr/local/include/thrift/c_glib/server'
/bin/mkdir -p '/usr/local/include/thrift/c_glib'
/usr/bin/install -c -m ../../config.h src/thrift/c_glib/thrift.h src/thrift/c_glib/thrift_application_exception.h src/thrift/c_glib/thrift_struct.h '/usr/local/include/thrift/c_glib'
/bin/mkdir -p '/usr/local/include/thrift/c_glib/transport'
/usr/bin/install -c -m src/thrift/c_glib/transport/thrift_buffered_transport.h src/thrift/c_glib/transport/thrift_framed_transport.h src/thrift/c_glib/transport/thrift_memory_buffer.h src/thrift/c_glib/transport/thrift_server_socket.h src/thrift/c_glib/transport/thrift_server_transport.h src/thrift/c_glib/transport/thrift_socket.h src/thrift/c_glib/transport/thrift_transport.h src/thrift/c_glib/transport/thrift_transport_factory.h src/thrift/c_glib/transport/thrift_buffered_transport_factory.h src/thrift/c_glib/transport/thrift_framed_transport_factory.h '/usr/local/include/thrift/c_glib/transport'
/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m thrift_c_glib.pc '/usr/local/lib/pkgconfig'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib'
Making install in test
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make install-recursive
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib/test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib/c_glib'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib'
make[]: Entering directory `/home/MyDownload/thrift-0.9./lib'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./lib'
Making install in test
make[]: Entering directory `/home/MyDownload/thrift-0.9./test'
Making install in c_glib
make[]: Entering directory `/home/MyDownload/thrift-0.9./test/c_glib'
make[]: Entering directory `/home/MyDownload/thrift-0.9./test/c_glib'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test/c_glib'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test/c_glib'
Making install in cpp
make[]: Entering directory `/home/MyDownload/thrift-0.9./test/cpp'
make install-am
make[]: Entering directory `/home/MyDownload/thrift-0.9./test/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./test/cpp'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./test'
make[]: Entering directory `/home/MyDownload/thrift-0.9./test'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./test'
Making install in tutorial
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial'
Making install in c_glib
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial/c_glib'
make install-am
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial/c_glib'
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial/c_glib'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/c_glib'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/c_glib'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/c_glib'
Making install in cpp
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make install-am
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial/cpp'
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial'
../compiler/cpp/thrift --gen html -r ../tutorial/tutorial.thrift
make[]: Entering directory `/home/MyDownload/thrift-0.9./tutorial'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial'
make[]: Leaving directory `/home/MyDownload/thrift-0.9./tutorial'
make[]: Entering directory `/home/MyDownload/thrift-0.9.'
make[]: Entering directory `/home/MyDownload/thrift-0.9.'
make[]: Nothing to be done for `install-exec-am'.
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/home/MyDownload/thrift-0.9.'
make[]: Leaving directory `/home/MyDownload/thrift-0.9.'

官网上说,下载了thrift的包后,解压然后configure & make,没有提make install,结合我上面的make install来看,貌似最后的make install与make的差别不大,是不是真的make install就不必要了,呵呵,需要研究makefile,才可以知道细节,暂且不研究了。。。

检查下,是否安装成功了嘛:

 [root@CloudGame MyDownload]# thrift --version
Thrift version 0.9.

到此,thrift的安装已经全部完成。 若有需要的,请转走,不谢!转载说明出处!

参考网址: http://thrift.apache.org/docs/install/centos, http://libevent.org/

上一篇:TeeChart使用范例


下一篇:Flink 基础学习(六)时间 Time 和 Watermark(下)