I decided that the best way to spend this Sunday morning was to try to get free_cite, a citation parsing system, running on my server. Turns out this is easier said than done; the README provides no information on which versions of different software you need and also gives no advice on setting up the ruby environment.
In any case, here's the best way to do it. Turns out that you run into a massive headache if you try to use default Debian/Ubuntu package managers to configure Ruby (really? this shouldn't be hard to get right... but hey).
If you think you don't need the below detailed instructions, here's the info you do need:
Ruby version: 1.8.7-p371
Rails version: 2.1
In any case, on Ubuntu 12.10, run:
You then need to configure your postgresql database. As this is covered elsewhere, I'll leave it. Suffice to say that the instructions on the free_cite page for setting up the permissions are correct.
Next, do:
and then fill in the database details in database.yml.
Next:
You then need to edit lib/crfparser.rb to change the case of CRFPP to crfpp on the 4th "require" line.
Finally: