问题描述
我正在尝试使用 leveldb 版本 1.22,snappy-1.1.8 构建 leveldbjni 1.8.1 版本。 操作系统:RHEL 7.4
依赖项:
gcc,g++ 版本:4.8.5
LevelDB 1.22 是使用 Cmake 3.9.0 构建的
我在项目 leveldbjni-linux64 的 maven 构建过程中面临以下问题。你能帮我们解决这个问题吗。
错误:
[INFO] executing: /bin/sh -c ./configure --disable-ccache --prefix=/tmp/leveldbjni/leveldbjni-linux64/target/native-build/target --with-leveldb=/tmp/leveldb-1.22 --with-snappy=/tmp/snappy-1.1.8
[INFO] configure: WARNING: unrecognized options: --disable-ccache
[INFO] checking build system type... x86_64-unknown-linux-gnu
.
.
.
[INFO] checking if g++ PIC flag -fPIC -DPIC works... yes
[INFO] checking if g++ static flag -static works... no
[INFO] checking if g++ supports -c -o file.o... yes
[INFO] checking if g++ supports -c -o file.o... (cached) yes
[INFO] checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
[INFO] checking dynamic linker characteristics... (cached) GNU/Linux ld.so
[INFO] checking how to hardcode library paths into programs... immediate
[INFO] checking the archiver (ar) interface... ar
[INFO] configure: javac was on your path,checking to see if it's part of a JDK we can use...
[INFO] checking if '/usr/java/jdk1.8.0_201-amd64' is a JDK... yes
[INFO] checking pthread.h usability... yes
[INFO] checking pthread.h presence... yes
[INFO] checking for pthread.h... yes
[INFO] checking leveldb/db.h usability... no
[INFO] checking leveldb/db.h presence... yes
[INFO] configure: WARNING: leveldb/db.h: present but cannot be compiled
[INFO] configure: WARNING: leveldb/db.h: check for missing prerequisite headers?
[INFO] configure: WARNING: leveldb/db.h: see the Autoconf documentation
[INFO] configure: WARNING: leveldb/db.h: section "Present But Cannot Be Compiled"
[INFO] configure: WARNING: leveldb/db.h: proceeding with the compiler's result
[INFO] checking for leveldb/db.h... no
[INFO] configure: error: cannot find headers for leveldb
[INFO] rc: 1
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] leveldbjni 1.8.1 ................................... SUCCESS [ 3.538 s]
[INFO] leveldbjni-linux64 1.8 ............................. FAILURE [ 2.786 s]
[INFO] leveldbjni-project 99-master-SNAPSHOT .............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.630 s
[INFO] Finished at: 2020-12-30T12:20:09+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.9:build (default) on project leveldbjni-linux64: build failed: org.apache.maven.plugin.MojoExecutionException: ./configure failed with exit code: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.9:build (default) on project leveldbjni-linux64: build failed: org.apache.maven.plugin.MojoExecutionException: ./configure failed with exit code: 1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)