在./configuration执行期间发生Thrift PHP/Java错误
我的Fedora(软件包)上安装了boost*-1.69.0-8,gradle二进制文件5.6.2在./configuration执行期间发生Thrift PHP/Java错误,thrift,Thrift,我的Fedora(软件包)上安装了boost*-1.69.0-8,gradle二进制文件5.6.2 ➜ gradle --version ------------------------------------------------------------ Gradle 5.6.2 ------------------------------------------------------------ Build time: 2019-09-05 16:13:54 UTC Revisi
➜ gradle --version
------------------------------------------------------------
Gradle 5.6.2
------------------------------------------------------------
Build time: 2019-09-05 16:13:54 UTC
Revision: 55a5e53d855db8fc7b0e494412fc624051a8e781
Kotlin: 1.3.41
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM: 12.0.1 (Oracle Corporation 12.0.1+12)
OS: Linux 5.2.13-200.fc30.x86_64 amd64
当我跑的时候
$ ./bootstrap.sh
$ ./configure
对于Java,我在结尾处遇到以下错误:
Java Library:
Using gradlew ............. : lib/java/gradlew
Using java ................ : java
Using javac ............... : javac
FAILURE: Build failed with an exception.
和PHP:
PHP Library:
Using php-config .......... : /usr/bin/php-config
PHP Warning: PHP Startup: Unable to load dynamic library 'thrift_protocol.so' (tried: /usr/lib64/php/modules/thrift_protocol.so (/usr/lib64/php/modules/thrift_protocol.so: undefined symbol: _object_and_properties_init), /usr/lib64/php/modules/thrift_protocol.so.so (/usr/lib64/php/modules/thrift_protocol.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Using php version ......... : PHP 7.3.9 (cli) (built: Aug 27 2019 22:52:39) ( NTS )
我该如何解决这个问题?
完整输出。/configure
您的gradle版本太旧,无法识别java 12。您应该能够通过将gradle更新到最新版本来解决这个问题
我不确定这是否能解决其余的问题,但不同的语言绑定可能会以这种方式相互作用。您是否在尝试构建节俭?您能提供一个指向您试图构建的tarball/存储库的链接吗?@g_bor我已经安装了graddle 5.6.2的最新二进制版本,但它没有帮助。/config output中我看到gradle版本没有被使用:使用gradle版本您是否可以尝试升级lib/java中的gradle包装器,如下所示:./gradlew包装器--gradle版本5.6.2不幸的是,我在这里没有看到PHP错误。稍后我将尝试在vm中复制它。它似乎使用lib/java/gradlew,而不是我的系统依赖项。是的,您可以尝试升级或重新生成包装器。有关升级,请参阅上述注释。要重新生成,请在lib/java中运行“gradle包装器”。
thrift 0.12.0
Building C (GLib) Library .... : yes
Building C# (Mono) Library ... : no
Building C++ Library ......... : yes
Building Common Lisp Library.. : no
Building D Library ........... : no
Building Dart Library ........ : no
Building dotnetcore Library .. : no
Building Erlang Library ...... : no
Building Go Library .......... : yes
Building Haskell Library ..... : no
Building Haxe Library ........ : no
Building Java Library ........ : yes
Building Lua Library ......... : no
Building NodeJS Library ...... : yes
Building Perl Library ........ : no
Building PHP Library ......... : yes
Building Plugin Support ...... : no
Building Python Library ...... : yes
Building Py3 Library ......... : yes
Building Ruby Library ........ : no
Building Rust Library ........ : yes
C++ Library:
C++ compiler .............. : g++ -std=c++11
Build TZlibTransport ...... : yes
Build TNonblockingServer .. : yes
Build TQTcpServer (Qt4) ... : no
Build TQTcpServer (Qt5) ... : yes
C++ compiler version ...... : g++ (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)
Go Library:
Using Go................... : /usr/bin/go
Using Go version........... : go version go1.12.9 linux/amd64
Java Library:
Using gradlew ............. : lib/java/gradlew
Using java ................ : java
Using javac ............... : javac
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine java version from '12.0.1'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Using Gradle version ...... :
Using java version ........ : java version "12.0.1" 2019-04-16
NodeJS Library:
Using NodeJS .............. : /usr/bin/node
Using NodeJS version....... : v10.15.1
PHP Library:
Using php-config .......... : /usr/bin/php-config
PHP Warning: PHP Startup: Unable to load dynamic library 'thrift_protocol.so' (tried: /usr/lib64/php/modules/thrift_protocol.so (/usr/lib64/php/modules/thrift_protocol.so: undefined symbol: _object_and_properties_init), /usr/lib64/php/modules/thrift_protocol.so.so (/usr/lib64/php/modules/thrift_protocol.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Using php version ......... : PHP 7.3.9 (cli) (built: Aug 27 2019 22:52:39) ( NTS )
Python Library:
Using Python .............. : /home/dmitry/.pyenv/shims/python
Using Python version ...... : Python 2.7.16
Using Python3 ............. : /home/dmitry/.pyenv/shims/python3
Using Python3 version ..... : Python 3.7.4
Using trial ............... : /usr/bin/trial
Rust Library:
Using Cargo................ : /usr/bin/cargo
Using rustc................ : /usr/bin/rustc
Using Rust version......... : rustc 1.37.0
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.