Gem dependencies

From Expertiza_Wiki
Jump to navigation Jump to search

A few new gems have been pushed to Expertiza as part of the new code that includes the automated metareviewing feature. You might face some issues with gem dependencies. I will try to provide some information here on how to overcome some of these dependency issues. If you have any other issues, please try stackoverflow.com or email the expertiza-support list for assistance.

If you are using an old version of rubygems, you may be expected to upgrade. You could do the following to upgrade rubygems.

  • gem update
  • gem update --system 1.4.2 (To use rubygems version 1.4.2)

Jar files and models to be placed in the /bin folder of the stanford-core-nlp gem

  • cd into the bin folder of the stanford-core-nlp gem
  • Download the zip folder containing the jars and model files that the gem depends on from http://www4.ncsu.edu/~lramach/bin-jars.zip - sudo wget http://www4.ncsu.edu/~lramach/bin-jars.zip
  • Unzip the folder - sudo unzip bin-jars.zip
  • Move the files from bin-jars to the bin folder - sudo mv file ../bin
  • Replace bridge.jar that the bin folder already contains with the bridge.jar from the downloaded folder.

Some gems may need you to have the updated versions of libxml2 and libxslt (Instructions are for Linux)

(Repeat the last 4 steps for libxml2)

The gem Nokogiri has some additional dependencies. Instructions are available at are: http://nokogiri.org/tutorials/installing_nokogiri.html

Get version >= 0.6 for aspell in order to install the raspell gem. Instructions on how to install aspell and the dictionary are:

Installing the english dictionary that aspell may need