简体   繁体   English

我在构建Thrift 0.9.2时如何启用TNonblockingServer

[英]How to enable TNonblockingServer while I'm building Thrift 0.9.2

I'm trying to build up a thrift with version 0.9.2, here is my command that I executed: 我正在尝试使用0.9.2版构建节俭,这是我执行的命令:

sudo ./configure --with-boost=/usr/local/boost_1.58.0

It will succeeded, but I get a returned message like this: 它将成功,但是我收到如下返回消息:

thrift 0.9.2

Building C++ Library ......... : yes
Building C (GLib) Library .... : yes
Building Java Library ........ : yes
Building C# Library .......... : no
Building Python Library ...... : yes
Building Ruby Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : no
Building PHP Library ......... : yes
Building Erlang Library ...... : no
Building Go Library .......... : no
Building D Library ........... : no
Building NodeJS Library ...... : no
Building Lua Library ......... : yes

C++ Library:
   Build TZlibTransport ...... : yes
   Build TNonblockingServer .. : no
   Build TQTcpServer (Qt) .... : yes

Java Library:
   Using javac ............... : javac
   Using java ................ : java
   Using ant ................. : /usr/bin/ant

Python Library:
   Using Python .............. : /usr/bin/python

PHP Library:
   Using php-config .......... : 

Lua Library:
   Using Lua .............. : /usr/bin/lua

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.

I've tried many ways to let the Build TNonblockingServer option be YES but I failed. 我尝试了多种方法来使Build TNonblockingServer选项为YES但失败了。

You need libevent to be installed. 您需要安装libevent。 Here are the relevant parts from configure.ac : 这是来自configure.ac的相关部分:

AX_LIB_EVENT([1.0])
have_libevent=$success

and

echo "   Build TNonblockingServer .. : $have_libevent"

It's also listed under the "language requirements" section over here : 它也根据“语言要求”一节中列出在这里

Language requirements 语言要求

C++ C ++

  • Boost 1.53.0 提升1.53.0

  • libevent (optional, to build the nonblocking server ) libevent(可选, 用于构建非阻塞服务器

  • zlib (optional) zlib(可选)

The minimum boost version is actually 1.54 , the website is slightly outdated regaring that point. 最低Boost版本实际上是1.54 ,该网站略微过时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM