我在Ubuntu10.04,Python2.6.5上,在安装pyLucene时遇到了一些问题。
这是我到目前为止所做的,安装这些包-
sudo apt-get install ant
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-1.5.0-sun
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install gcj
sudo apt-get install python-dev之后从http://www.apache.org/dyn/closer.cgi/lucene/pylucene/得到了pyLucene的源代码。我得到的版本是幽门环烯-3.0.1-1。
去掉了。因为需要首先构建JCC,所以转到JCC目录,然后输入python setup.py install。获取有关某些setuptools修补程序的错误。它让我这么做的-- sudo patch -d /usr/lib/python2.6/dist-packages -Nup0 < /home/code/python/lucene/pylucene-3.0.1-1/jcc/jcc/patches/patch.43.0.6c11
我做到了。但我在终端上找到了这个-
patching file setuptools/extension.py
patching file setuptools/command/build_ext.py
Hunk #1 FAILED at 85.
Hunk #2 succeeded at 177 (offset 7 lines).
Hunk #3 succeeded at 259 (offset 7 lines).
1 out of 3 hunks FAILED -- saving rejects to file setuptools/command/build_ext.py.rej现在我的构建失败了--例如,当我执行sudo python setup.py build时,我得到-
...
error: command 'gcc' failed with exit status 1发布于 2010-12-14 20:21:02
您需要什么版本?这里有一个2.9.2-1的PPA:
发布于 2010-12-15 03:35:39
我认为问题可能是补丁是针对setuptools 0.6-11的,而您已经从发行版的软件包中安装了setuptools的早期版本(prob 0.6-10)。
我也遇到过类似的问题,通过删除发行版安装的setuptools版本并安装您自己从http://pypi.python.org/pypi/setuptools下载的setuptools版本,解决了这个问题
我还没有遇到任何问题,但有一个非常小的机会,这将干扰您的系统上的一些其他程序。
https://stackoverflow.com/questions/4438936
复制相似问题