我试图安装JCC,这是pylucene的先决条件。我和linux-mint Serena一起工作。我想用python3.5安装它。检查setup.py文件后,我运行:
python3.5 setup.py build
这是我得到的错误:
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.5/jcc3/sources/jcc.o build/temp.linux-x86_64-3.5/jcc3/sources/JCCEnv.o -o build/lib.linux-x86_64-3.5/libjcc3.so -L/usr/lib/jvm/java-8-oracle/jre/lib/amd64 -ljava -L/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server -ljvm -Wl,-rpath=/usr/lib/jvm/java-8-oracle/jre/lib/amd64:/usr/lib/jvm/java-8-oracle/jre/lib/amd64/server -Wl,-S -lpython3.5
/usr/bin/ld: cannot find -lpython3.5
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
我检查了/usr/bin/
中是否有python3.5,我也检查过我安装了python3-dev。
我不知道为什么联系失败了,任何想法?
答案 0 :(得分:2)
我设法使用python2.7安装pylucene。然后我发现了这个github:https://github.com/rudimeier/jcc我用python3.5编译JCC,它允许我用python3.5编译pylucene。