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:
Either openjdk or gcj will do; this page may help clarify the difference.
jni.h is the Java Native Interface header, so you will need to make sure you have Java installed. For Ubuntu there is a
openjdk-6-jdk
package which I've confirmed has the require file available.