I cloned leveldbjni package from https://github.com/ibmsoe/leveldbjni and tried to build it using the following steps (snappy & snappy-devel was installed from yum repository) on a RHEL VM:
**git clone https://github.com/ibmsoe/leveldbjni
git clone https://github.com/ibmsoe/leveldb
export SNAPPY_HOME=/usr/lib/ ( lib64 in rhel )
export LEVELDB_HOME=`cd leveldb; pwd`
export LEVELDBJNI_HOME=`cd leveldbjni; pwd`
cd ${LEVELDB_HOME}
git apply ../leveldbjni/leveldb.patch
make libleveldb.a
cd ${LEVELDBJNI_HOME}
mvn clean install -P download -Plinux64,all**
Tests failed with the following error.
**-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.fusesource.leveldbjni.test.DBTest
Tests run: 15, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 52.645 sec <<< FAILURE!
Results :
Failed tests:
testCompactRanges(org.fusesource.leveldbjni.test.DBTest)
Tests run: 15, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] leveldbjni-project ................................. SUCCESS [ 0.206 s]
[INFO] leveldbjni ......................................... SUCCESS [ 4.413 s]
[INFO] leveldbjni-linux64 ................................. FAILURE [01:03 min]
[INFO] leveldbjni-all ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:08 min
[INFO] Finished at: 2016-10-12T09:49:45+00:00
[INFO] Final Memory: 28M/661M
[INFO] ------------------------------------------------------------------------**
I cloned leveldbjni package from https://github.com/ibmsoe/leveldbjni and tried to build it using the following steps (snappy & snappy-devel was installed from yum repository) on a RHEL VM:
Tests failed with the following error.