如何在构建节俭 0.9.2 时启用 Tonblocking服务器
How to enable TNonblockingServer while I'm building Thrift 0.9.2
我试图用0.9.2版本建立一个节俭,这是我执行的命令:
sudo ./configure --with-boost=/usr/local/boost_1.58.0
它将成功,但我得到这样的返回消息:
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.
我已经尝试了很多方法让构建TNonblockingServer
选项是YES
,但我失败了。
需要安装libevent。以下是configure.ac
的相关部分:
AX_LIB_EVENT([1.0])
have_libevent=$success
和
echo " Build TNonblockingServer .. : $have_libevent"
它也列在这里的"语言要求"部分:
语言要求
c++
提高1.53.0
libevent(可选,构建非阻塞服务器)
zlib(可选)
最小的boost版本实际上是1.54,网站在这一点上有点过时。
相关文章:
- 编译时未启用intel oneApi CUDA支持
- OpenGL在启用深度测试时不会丢弃我的碎片
- Visual C++GC接口如何启用它以及要包含哪个库
- 如何在自定义类中启用'auto loops'?
- 根据某个函数是否存在启用模板
- 视觉工作室 2017;启用 /permissive 时,类型 "const wchar_t *" 的参数与类型 "PWSTR" 的参数不兼容
- 启用从"vector<const T>&"到"const vector&"的隐式转换<T>
- C++ win32 如何使密码字段可选并启用复制和粘贴?
- 在 Eclipse 上启用 C++17 以使用 'std::byte'
- 当 noexcept 函数尝试在 gcc 或 clang 中调用非 noexcept 函数时启用警告
- 如何为一段代码启用 -permissive
- 是否可以/希望创建不可复制的共享指针模拟(以启用weak_ptr跟踪/借用类型语义)?
- 在 GCC 中启用"differing levels of indirection"警告/错误
- 使用 Doxygen 记录枚举类值,而不启用EXTRACT_ALL
- '_HAS_CXX17'宏是否可用于自定义项目标头以启用C++17 语言集功能?
- 如何启用转换模板参数 T 以常量 T?
- 在使用 gSoap 链接多个 SOAP 服务时启用保持活动状态
- 如何启用标准::实验::atomic_shared_pointer
- 如何启用友元类的友元功能直接在C++中访问其私有成员
- 如何在构建节俭 0.9.2 时启用 Tonblocking服务器