> It looks like JCC can't find java (failing to find libjava.dylib). Which java > did you install ? Java 1.8.0_102 > When building JCC, the java version (library or franework) is reported. What > did it say ?
found JAVAHOME = /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home > You also need to make sure JCC is built in shared mode and use a moderm > setuptools (version >= 8). > pip install --upgrade setuptools Successfully uninstalled setuptools-23.1.0 Successfully installed setuptools-27.1.2 Tried again with updated setuptools, same result. /usr/local/opt/python/bin/python2.7: dlopen(/usr/local/lib/python2.7/site-packages/JCC-2.22-py2.7-macosx-10.12-x86_64.egg/jcc/_jcc.so, 2): Library not loaded: @rpath/libjava.dylib Makefile settings: PREFIX_PYTHON=/usr/local/Cellar/python/2.7.12 ANT=ant PYTHON=$(PREFIX_PYTHON)/bin/python JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64 NUM_FILES=8 GNU Make 3.81 -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 12. sep. 2016 kl. 12.04 skrev Andi Vajda <va...@apache.org>: > >> >> On Sep 12, 2016, at 09:54, Jan Høydahl <jan....@cominvent.com> wrote: >> >> I’m trying to test on my mac. >> >> Successfully built and installed JCC. >> Trying to build pylucene, “make” fails with this error: >> >>> BUILD SUCCESSFUL >>> Total time: 1 second >>> ICU not installed >>> /usr/local/Cellar/python/2.7.12/bin/python -m jcc.__main__ --shared --arch >>> x86_64 --jar lucene-java-6.2.0/lucene/build/core/lucene-core-6.2.0.jar >>> --jar >>> lucene-java-6.2.0/lucene/build/analysis/common/lucene-analyzers-common-6.2.0.jar >>> --jar lucene-java-6.2.0/lucene/build/memory/lucene-memory-6.2.0.jar --jar >>> lucene-java-6.2.0/lucene/build/highlighter/lucene-highlighter-6.2.0.jar >>> --jar build/jar/extensions.jar --jar >>> lucene-java-6.2.0/lucene/build/queries/lucene-queries-6.2.0.jar --jar >>> lucene-java-6.2.0/lucene/build/queryparser/lucene-queryparser-6.2.0.jar >>> --jar lucene-java-6.2.0/lucene/build/sandbox/lucene-sandbox-6.2.0.jar --jar >>> lucene-java-6.2.0/lucene/build/analysis/stempel/lucene-analyzers-stempel-6.2.0.jar >>> --jar lucene-java-6.2.0/lucene/build/grouping/lucene-grouping-6.2.0.jar >>> --jar lucene-java-6.2.0/lucene/build/join/lucene-join-6.2.0.jar --jar >>> lucene-java-6.2.0/lucene/build/facet/lucene-facet-6.2.0.jar --jar >>> lucene-java-6.2.0/lucene/build/suggest/lucene-suggest-6.2.0.jar --jar >>> lucene-java-6.2.0/lucene/build/expressions/lucene-expressions-6.2.0.jar >>> --jar >>> lucene-java-6.2.0/lucene/build/analysis/kuromoji/lucene-analyzers-kuromoji-6.2.0.jar >>> --jar lucene-java-6.2.0/lucene/build/misc/lucene-misc-6.2.0.jar >>> --use_full_names --include >>> lucene-java-6.2.0/lucene/expressions/lib/antlr4-runtime-4.5.1-1.jar >>> --include lucene-java-6.2.0/lucene/expressions/lib/asm-5.1.jar --include >>> lucene-java-6.2.0/lucene/expressions/lib/asm-commons-5.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.AbstractList 'size:()I' 'get:(I)Ljava/lang/Object;' >>> org.apache.lucene.index.IndexWriter:getReader --version 6.2.0 --module >>> python/collections.py --module python/ICUNormalizer2Filter.py --module >>> python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --files 8 >>> --build >>> /usr/local/opt/python/bin/python2.7: >>> dlopen(/usr/local/lib/python2.7/site-packages/JCC-2.22-py2.7-macosx-10.12-x86_64.egg/jcc/_jcc.so, >>> 2): Library not loaded: @rpath/libjava.dylib >>> Referenced from: >>> /usr/local/lib/python2.7/site-packages/JCC-2.22-py2.7-macosx-10.12-x86_64.egg/jcc/_jcc.so > > It looks like JCC can't find java (failing to find libjava.dylib). Which java > did you install ? > When building JCC, the java version (library or franework) is reported. What > did it say ? > You also need to make sure JCC is built in shared mode and use a moderm > setuptools (version >= 8). > > pip install --upgrade setuptools > > Andi.. > >>> Reason: image not found >>> make: *** [compile] Error 1 >> >> >> I’m running macOS Sierra 10.12, Java 1.8.0_102 ant 1.9.7, XCode 8-beta and >> python 2.7.12. >> >> Before upgrading to macOS Sierra GM, I got another error, saying Java was >> not installed and requesting install of Apple’s Java6. >> >> -- >> Jan Høydahl, search solution architect >> Cominvent AS - www.cominvent.com >> >>> 9. sep. 2016 kl. 12.06 skrev Andi Vajda <va...@apache.org>: >>> >>> >>> After an almost two year hiatus, a new PyLucene version is ready for >>> release. The PyLucene 6.2.0 (rc2) release tracking the recent release of >>> Apache Lucene 6.2.0 is ready. >>> >>> A release candidate is available from: >>> https://dist.apache.org/repos/dist/dev/lucene/pylucene/6.2.0-rc2/ >>> >>> PyLucene 6.2.0 is built with JCC 2.22 included in these release artifacts. >>> >>> Please vote to release these artifacts as PyLucene 6.2.0. >>> Anyone interested in this release can and should vote ! >>> >>> Thanks ! >>> >>> Andi.. >>> >>> ps: the KEYS file for PyLucene release signing is at: >>> https://dist.apache.org/repos/dist/release/lucene/pylucene/KEYS >>> https://dist.apache.org/repos/dist/dev/lucene/pylucene/KEYS >>> >>> pps: here is my +1