20101211

ERROR: Failed to build gem native extension. / install stanford parser on ubuntu 10.04

First you need to download Stanford parser after downloading, you need to put the content of the folder into : /usr/local/stanford-parser/current

After, you need to make sure that your shell has $JAVA_HOME by writting this in the config files of your shell (/etc/bash.bashrc) (default-jdk is a requirement at this stage)

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
export PATH=$PATH:$JAVA_HOME/bin

Connect as root (sudo -s) and run:
export JAVA_HOME=$JAVA_HOME
gem install jrb
gem install treebank

Here you go, ready to use Stanford parser.

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'stanfordparser'
=> true

1 comment:

  1. Anonymous16.6.13

    I'm not sure why but this site is loading incredibly slow for me. Is anyone else having this issue or is it a issue on my end? I'll check back later
    and see if the problem still exists.

    Have a look at my web blog :: best acne treatments

    ReplyDelete