Gitorious spelling problems

At work, we introduced gitorious as Git frontend - it looks nice and allows developers to create new projects and repositories with a few clicks. Setting up permissions is also trivial with it.

During setup, we encountered some problems that took some time to solve - given that - as a PHP shop - we have no experience with Ruby at all.

Uninitialized constant Ultrasphinx :Spell::Aspell​

The first problem, logged in gitorious/log/production.log,

** ultrasphinx spelling support not available
(raspell configuration raised "uninitialized constant Ultrasphinx :Spell::Aspell")

was relatively easy to fix:

$ aptitude install libaspell-dev 
$ gem install raspell

Now we had to restart apache and all was well.

No word lists can be found for the language "ap"​

Actually not everything was good after installing aspell since aspell did not find the dictionary:

** ultrasphinx spelling support not available
(raspell configuration raised "No word lists can be found for the language "ap".")

I found two blog entries linking to a non-existing page which was supposed to explain the solution, so I had to find out myself. The #gitorious Freenode channel gave me the the hint I needed, and in the end all it took to solve the problem was:

$ aspell config dict-dir
/usr/lib/aspell
$ cd /path/to/gitorious
$ cp vendor/plugins/ultrasphinx/examples/ap.multi /usr/lib/aspell/
$ RAILS_ENV=production rake ultrasphinx:spelling:build
$ /etc/init.d/apache2 restart

Written by Christian Weiske.

Comments? Please send an e-mail.