安装Stanford Parser的Python界面:错误:命令'gcc'失败,退出状态1 rake中止 [英] Installing Stanford Parser's Python interface: error: command 'gcc' failed with exit status 1 rake aborted
问题描述
我想安装斯坦福解析器的python界面.
http://projects.csail.mit.edu/spatial/Stanford_Parser
在运行 rake设置以先安装jpype时,我保留了ge
In file included from src/native/common/jp_reference.cpp:1:0:
src/native/common/include/jpype.h:45:17: schwerwiegender Fehler: jni.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
error: command 'gcc' failed with exit status 1
rake aborted!
错误消息是英语-德语混合的.它说:严重失败:jni.h:找不到文件或目录.
当我尝试安装斯坦福解析器本身时,也会发生同样的事情.
是的,我的系统上已经安装了python-dev. 我正在使用Ubuntu2.7和python2.7.
错误消息表明您缺少jni.h
.
您可以使用 http://packages.ubuntu.com 上的搜索工具来查找哪个软件包提供了丢失的文件:
对于Ubuntu的最新版本Quantal(12.10),这些软件包提供了jni.h:
File Packages
/usr/lib/gcc-snapshot/lib/gcc/i686-linux-gnu/4.8.0/include/jni.h gcc-snapshot
/usr/lib/gcc/i686-linux-gnu/4.6/include/jni.h gcj-4.6-jdk
/usr/lib/gcc/i686-linux-gnu/4.7/include/jni.h gcj-4.7-jdk
/usr/lib/jvm/java-1.5.0-gcj-4.6/include/jni.h gcj-4.6-jdk
/usr/lib/jvm/java-1.5.0-gcj-4.7/include/jni.h gcj-4.7-jdk
/usr/lib/jvm/java-1.5.0-gcj-4.8-snap/include/jni.h gcc-snapshot
/usr/lib/jvm/java-6-openjdk-i386/include/jni.h openjdk-6-jdk
/usr/lib/jvm/java-7-openjdk-i386/include/jni.h openjdk-7-jdk
openjdk或gcj都可以; 此页面可能有助于澄清区别. >
I'd like to install the stanford parser's python interface.
http://projects.csail.mit.edu/spatial/Stanford_Parser
When running rake setup to install jpype first, I keep ge
In file included from src/native/common/jp_reference.cpp:1:0:
src/native/common/include/jpype.h:45:17: schwerwiegender Fehler: jni.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
error: command 'gcc' failed with exit status 1
rake aborted!
The error message is english-german-mixed. It says: heavy failure: jni.h: File or directory not found.
When I try to install the stanford-parser itself, the same thing happens.
Yes, I python-dev is already installed on my system. I'm working on Ubuntu and with python2.7.
The error messages says you are missing jni.h
.
You can use the search tool at http://packages.ubuntu.com to find which package provides the missing file:
For the most recent version of Ubuntu, Quantal (12.10), these packages provide the jni.h:
File Packages
/usr/lib/gcc-snapshot/lib/gcc/i686-linux-gnu/4.8.0/include/jni.h gcc-snapshot
/usr/lib/gcc/i686-linux-gnu/4.6/include/jni.h gcj-4.6-jdk
/usr/lib/gcc/i686-linux-gnu/4.7/include/jni.h gcj-4.7-jdk
/usr/lib/jvm/java-1.5.0-gcj-4.6/include/jni.h gcj-4.6-jdk
/usr/lib/jvm/java-1.5.0-gcj-4.7/include/jni.h gcj-4.7-jdk
/usr/lib/jvm/java-1.5.0-gcj-4.8-snap/include/jni.h gcc-snapshot
/usr/lib/jvm/java-6-openjdk-i386/include/jni.h openjdk-6-jdk
/usr/lib/jvm/java-7-openjdk-i386/include/jni.h openjdk-7-jdk
Either openjdk or gcj will do; this page may help clarify the difference.
这篇关于安装Stanford Parser的Python界面:错误:命令'gcc'失败,退出状态1 rake中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!