thrift建立java库...:没有

问题描述 投票:1回答:3

我按照http://thrift.apache.org/docs/install/centos上的说明安装了thrift

运行./configure命令后,我得到了:

Building C++ Library ......... : yes
Building C (GLib) Library .... : no
**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 ......... : yes
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) .... : no
   Build TQTcpServer (Qt5) .... : no

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

我已经安装了java和ant

[root@localhost thrift]# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) Server VM (build 25.45-b02, mixed mode)

我不明白为什么'构建java库是没有'

thrift
3个回答
8
投票

如果尚未安装Ant,请先安装它并再次运行./configure。


0
投票

首先,configure脚本写入一个非常详细的日志文件(在配置步骤结束时提到了BTW)。原因应该从该信息中扣除。

我想到的第二件事是:我在非英语语言环境中看到了Java路径的问题,甚至还有一个ticket about it

有了我们上面的内容,很难说清楚。


0
投票

从Thrift 0.10.0开始,它预计Ant版本为1.7或更新版本。但是,它不会将Ant 1.10.1检测为有效版本。我不得不降级到Ant 1.9.9以使用Java支持编译Thrift。

© www.soinside.com 2019 - 2024. All rights reserved.