昨天我在我的 Ubuntu AWS 12.04(Amazon)微距 OpenNLP 上安装了并且似乎可以运行。
今天输入 opennlp:command not found
遵循建议在此处找到:
我修改了我的.bash_profile:
export JAVA_CMD=$JAVA_HOME/bin/java
export PATH=$PATH:/OPENNLP_HOME/bin
export PATH=$PATH
export PATH=$HOME/bin:$PATH
export PATH=/usr/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export PATH=/usr/local/heroku/bin:$PATH
echo $PATH
/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/ubuntu/bin:/home/ubuntu/.nvm/v0.10.12/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.7.0_40/bin:/OPENNLP_HOME/bin
echo $JAVA_HOME
/usr/lib/jvm/jdk1.7.0_40
echo $JAVA_CMD
/usr/lib/jvm/jdk1.7.0_40/bin/java
为了使其再次工作我下一步该做什么?
答案1
/OPENNLP_HOME/bin
opn_nlp 的实际路径是?
以下命令的输出是什么?
echo $OPENNLP_HOME
您首先需要执行以下操作:
export OPENNLP_HOME="Path TO OpenNLP Folder"
export PATH=$PATH:$OPENNLP_HOME/bin