I install thrift just following the instruction on http://thrift.apache.org/docs/install/centos
After running the ./configure command I got:
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 .......... :
I have installed java and 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)
I don't understand why the 'building java library is no'
If you have not installed Ant, install it first and run ./configure again.
As of Thrift 0.10.0, it expects Ant version 1.7 or newer. However, it doesn't detect Ant 1.10.1 as valid version. I had to downgrade to Ant 1.9.9 to compile Thrift with Java support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With