ImportError: libjvm.so при установке pylucene 7.4.0 в Ubuntu 16.04 - PullRequest
0 голосов
/ 06 октября 2018

Я пытаюсь установить pylucene 7.4.0 на мою машину с Ubuntu 16.04.Я думаю, что я успешно установил jcc перед запуском make of pylucene.Я использую Java 9.0.4.Но я получаю следующее сообщение об ошибке

sumanta@sumanta-Aspire-A515-51G:~/Softwares/pylucene-7.4.0$ makecd lucene-java-7.4.0/lucene; (ant ivy-availability-check || ant ivy-bootstrap)
Buildfile: /home/sumanta/Softwares/pylucene-7.4.0/lucene-java-7.4.0/lucene/build.xml

ivy-availability-check:
[loadresource] Do not set property disallowed.ivy.jars.list as its length is 0.

-ivy-fail-disallowed-ivy-version:

ivy-fail:

BUILD SUCCESSFUL
Total time: 0 seconds
/usr/bin/python -m jcc --jar lucene-java-7.4.0/lucene/build/core/lucene-core-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/analysis/common/lucene-analyzers-common-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/memory/lucene-memory-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/highlighter/lucene-highlighter-7.4.0.jar --jar build/jar/extensions.jar --jar lucene-java-7.4.0/lucene/build/queries/lucene-queries-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/queryparser/lucene-queryparser-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/sandbox/lucene-sandbox-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/analysis/stempel/lucene-analyzers-stempel-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/grouping/lucene-grouping-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/join/lucene-join-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/facet/lucene-facet-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/suggest/lucene-suggest-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/expressions/lucene-expressions-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/analysis/kuromoji/lucene-analyzers-kuromoji-7.4.0.jar --jar lucene-java-7.4.0/lucene/build/misc/lucene-misc-7.4.0.jar  --use_full_names --include lucene-java-7.4.0/lucene/expressions/lib/antlr4-runtime-4.5.1-1.jar --include lucene-java-7.4.0/lucene/expressions/lib/asm-5.1.jar --include lucene-java-7.4.0/lucene/expressions/lib/asm-commons-5.1.jar --include lucene-java-7.4.0/lucene/facet/lib/hppc-0.8.1.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.Collections java.util.HashMap java.util.HashSet java.util.TreeSet java.lang.IllegalStateException java.lang.IndexOutOfBoundsException java.util.NoSuchElementException java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.concurrent java.util.concurrent.Executors --package java.util.regex --package java.io java.io.StringReader --package java.nio.file java.nio.file.Path java.nio.file.Files java.nio.file.Paths --exclude org.apache.lucene.sandbox.queries.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.store.WindowsDirectory --exclude org.apache.lucene.store.NativePosixUtil --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence java.util.AbstractCollection 'size:()I' '-:-' --sequence java.util.AbstractList '-:-' 'get:(I)Ljava/lang/Object;' org.apache.lucene.index.IndexWriter:getReader org.apache.lucene.analysis.Tokenizer:input --version 7.4.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --resources lucene-java-7.4.0/lucene/analysis/icu/src/resources --files 8 --build 
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
    mod_name, _Error)
  File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
    __import__(mod_name)  # Do not catch exceptions initializing package
  File "/usr/local/lib/python2.7/dist-packages/JCC-3.2-py2.7-linux-x86_64.egg/jcc/__init__.py", line 31, in <module>
    from jcc import _jcc2
ImportError: libjvm.so: cannot open shared object file: No such file or directory
Makefile:344: recipe for target 'compile' failed
make: *** [compile] Error 1

Ниже приведена некомментированная часть make-файла пилицена:

# Linux     (Ubuntu 6.06, Python 2.4, Java 1.5, no setuptools)
PREFIX_PYTHON=/usr
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
#JCC=$(PYTHON) $(PREFIX_PYTHON)/local/lib/python2.7/site-packages/jcc/__init__.py
JCC=$(PYTHON) -m jcc
NUM_FILES=8

Может кто-нибудь помочь мне в этом?

...