安装PyLucene时makefile的几个问题

安装PyLucene时makefile的几个问题,makefile,pylucene,Makefile,Pylucene,我正在尝试在我的Linux机器上构建PyLucene。以下是我目前在Makefile上提供的详细信息: PREFIX_PYTHON=/home_ex/tianhongtao/SW/anaconda3/envs/Hisense ANT=JAVA_HOME=/home_ex/tianhongtao/SW/jdk1.8.0_191 /home_ex/tianhongtao/SW/apache-ant-1.10.5/bin/ant PYTHON=$(PREFIX_PYTHON)/bin/python3.

我正在尝试在我的Linux机器上构建PyLucene。以下是我目前在Makefile上提供的详细信息:

PREFIX_PYTHON=/home_ex/tianhongtao/SW/anaconda3/envs/Hisense
ANT=JAVA_HOME=/home_ex/tianhongtao/SW/jdk1.8.0_191 /home_ex/tianhongtao/SW/apache-ant-1.10.5/bin/ant
PYTHON=$(PREFIX_PYTHON)/bin/python3.7
JCC=$(PYTHON) -m jcc --shared
NUM_FILES=10

从命令行运行“make”时,遇到以下错误:

which: no icupkg in (/home_ex/tianhongtao/SW/anaconda3/envs/Hisense/bin:/home_ex/tianhongtao/SW/anaconda3/condabin:/home_ex/tianhongtao/SW/apache-ant-1.10.5/bin:/home_ex/tianhongtao/SW/jdk1.8.0_191/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home_ex/tianhongtao/.local/bin:/home_ex/tianhongtao/bin)
cd lucene-java-7.5.0/lucene; (JAVA_HOME=/home_ex/tianhongtao/SW/jdk1.8.0_191 /home_ex/tianhongtao/SW/apache-ant-1.10.5/bin/ant ivy-availability-check || JAVA_HOME=/home_ex/tianhongtao/SW/jdk1.8.0_191 /home_ex/tianhongtao/SW/apache-ant-1.10.5/bin/ant ivy-bootstrap)
Buildfile: /home_ex/tianhongtao/SW/pylucene-7.5.0/lucene-java-7.5.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:
     [echo]
     [echo]      This build requires Ivy and Ivy could not be found in your ant classpath.
     [echo]
     [echo]      (Due to classpath issues and the recursive nature of the Lucene/Solr
     [echo]      build system, a local copy of Ivy can not be used an loaded dynamically
     [echo]      by the build.xml)
     [echo]
     [echo]      You can either manually install a copy of Ivy 2.4.0 in your ant classpath:
     [echo]        http://ant.apache.org/manual/install.html#optionalTasks
     [echo]
     [echo]      Or this build file can do it for you by running the Ivy Bootstrap target:
     [echo]        ant ivy-bootstrap
     [echo]
     [echo]      Either way you will only have to install Ivy one time.
     [echo]
     [echo]      'ant ivy-bootstrap' will install a copy of Ivy into your Ant User Library:
     [echo]        /home_ex/tianhongtao/.ant/lib
     [echo]
     [echo]      If you would prefer, you can have it installed into an alternative
     [echo]      directory using the "-Divy_install_path=/some/path/you/choose" option,
     [echo]      but you will have to specify this path every time you build Lucene/Solr
     [echo]      in the future...
     [echo]        ant ivy-bootstrap -Divy_install_path=/some/path/you/choose
     [echo]        ...
     [echo]        ant -lib /some/path/you/choose clean compile
     [echo]        ...
     [echo]        ant -lib /some/path/you/choose clean compile
     [echo]
     [echo]      If you have already run ivy-bootstrap, and still get this message, please
     [echo]      try using the "--noconfig" option when running ant, or editing your global
     [echo]      ant config to allow the user lib to be loaded.  See the wiki for more details:
     [echo]        http://wiki.apache.org/lucene-java/DeveloperTips#Problems_with_Ivy.3F
     [echo]

BUILD FAILED
/home_ex/tianhongtao/SW/pylucene-7.5.0/lucene-java-7.5.0/lucene/common-build.xml:456: The following error occurred while executing this line:
/home_ex/tianhongtao/SW/pylucene-7.5.0/lucene-java-7.5.0/lucene/common-build.xml:500: Ivy is not available


有人能提供一些关于哪里出了问题的见解吗?谢谢。

您可能需要安装ivyohh,谢谢~