[
https://issues.apache.org/jira/browse/PYLUCENE-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17529472#comment-17529472
]
Andi Vajda commented on PYLUCENE-63:
------------------------------------
The first 'make print-GENERATE' shows that you didn't follow the instructions
at the top of the Makefile. You must uncomment one of the example groups so
that PREFIX_PYTHON, PYTHON, JCC and NUM_FILES are set. And they must be set
correctly for your environment.
You then did this, apparently, and your next print-GENERATE is making more
sense (!).
The next issue then is that you didn't rebuild JCC (it shows you using version
3.10 but PyLucene 9.1.0 comes with 3.12) and the earlier JCC build you made was
built with an incompatible version of Java. Please rebuild JCC so that you are
using version 3.12.
The last issue is that your java installation's layout (in particular its paths
to libraries libjava and libjvm) is not covered in JCC's setup.py. This is a
known issue, there are just so many different layouts that it's difficult to
guess the correct one. You need to edit jcc's setup.py at line 172,173,174 and
set the values for the -L flags to match your installation. I suspect that you
don't need the final amd64 parts in there, ie, change -L%(linux)s/jre/lib/amd64
into -L%(linux)s/jre/lib, change -L%(linux)s/jre/lib/amd64/server to
-L%(linux)s/jre/lib/server and
'-Wl,-rpath=%(linux)s/jre/lib/amd64:%(linux)s/jre/lib/amd64/server to
'-Wl,-rpath=%(linux)s/jre/lib:%(linux)s/jre/lib/server.
Last but not least, you seem to be using python 2.7. It's still supported by
PyLucene and JCC but not by the Python people anymore and it is not going to be
supported by PyLucene and JCC much longer. I strongly recommend you install
python3. Python 2.7 has been dead and deprecated for years now. If you are just
getting started with Python now, please start with python 3.
And finally, this entire conversation should be had on the
[email protected] mailing list instead of buried in JIRA. This
issue is not a bug.
> can not install pylucene on linux with proxy
> ---------------------------------------------
>
> Key: PYLUCENE-63
> URL: https://issues.apache.org/jira/browse/PYLUCENE-63
> Project: PyLucene
> Issue Type: Bug
> Environment: ubuntu 2020.4
> Reporter: lisa.shi
> Priority: Major
>
> i try to install pyylucene on linux with proxy. i have already set
> http_proxy on linux . i have change Makefile .
> from
> cd $(LUCENE); ($(ANT) ivy-availability-check || $(ANT) ivy-bootstrap )
> to
> cd $(LUCENE); ($(ANT) ivy-availability-check -autoproxy|| $(ANT)
> ivy-bootstrap -autoproxy)
> then i can get ivy-2.4.0.jar in ~/.ant/lib/
> when i try to make pyluence. i meet a bug.
>
>
> ivy:cachepath] [https://repository.cloudera.com/artifactory/li]
> bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .pom
> [ivy:cachepath] – artifact org.codehaus.groovy#groovy-all;2.4
> .17!groovy-all.jar:
> [ivy:cachepath] [https://repository.cloudera.com/artifactory/li]
> bs-release-local/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17 .jar
> [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::
> ::::::
> [ivy:cachepath] :: UNRESOLVED DEPENDENCIES
> ::
> [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::
> ::::::
> [ivy:cachepath] :: org.codehaus.groovy#groovy-all;2.4.17 :
> not found
> [ivy:cachepath] ::::::::::::::::::::::::::::::::::::::::
> ::::::
> [ivy:cachepath] :::: ERRORS
> [ivy:cachepath] Server access error at url
> [https://repo1.maven.o|https://repo1.maven.o/]
> rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.pom (j
> ava.net.ConnectException: Connection timed out (Connection timed out))
> [ivy:cachepath] Server access error at url
> [https://repo1.maven.o|https://repo1.maven.o/]
> rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar (j
> ava.net.ConnectException: Connection timed out (Connection timed out))
> [ivy:cachepath] Server access error at url
> [https://oss.sonatype|https://oss.sonatype/].
> org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/
> groovy-all-2.4.17.pom (java.net.ConnectException: Connection timed out (
> Connection timed out))
> [ivy:cachepath] Server access error at url
> [https://oss.sonatype|https://oss.sonatype/].
> org/content/repositories/releases/org/codehaus/groovy/groovy-all/2.4.17/
> groovy-all-2.4.17.jar (java.net.ConnectException: Connection timed out (
> Connection timed out))
> [ivy:cachepath] Server access error at url
> [https://repository.cl|https://repository.cl/]
> oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all
> /2.4.17/groovy-all-2.4.17.pom (java.net.ConnectException: Connection tim ed
> out (Connection timed out))
> [ivy:cachepath] Server access error at url
> [https://repository.cl|https://repository.cl/]
> oudera.com/artifactory/libs-release-local/org/codehaus/groovy/groovy-all
> /2.4.17/groovy-all-2.4.17.jar (java.net.ConnectException: Connection tim ed
> out (Connection timed out))
> [ivy:cachepath]
> [ivy:cachepath] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
> BUILD FAILED
>
>
> how can i fix this bug?
> i am sure the file (
> [https://repo1.maven.o|https://repo1.maven.o/]rg/maven2/org/codehaus/groovy/groovy-all/2.4.17/groovy-all-2.4.17.jar)
> is not exist
--
This message was sent by Atlassian Jira
(v8.20.7#820007)