Musician, Ruby on Rails Entusiast, Composer, Programmer and Lover of Hot Sauce

Shoulda Testing With Ultrasphinx

Posted: June 24th, 2009 | Author: mindtonic | Filed under: Rails Plugins | Tags: , , , , | 2 Comments »

I use the Shoulda testing framework for my Rails applications. After installing and beginning to use the Ultrasphinx plugin, I needed to figure out how to configure and run in a testing environment. This blog entry held the answer: Stephen Celis: Testing with Ultrasphinx


Ultrasphinx MySql Location Error

Posted: June 24th, 2009 | Author: mindtonic | Filed under: Rails Plugins | Tags: , , , , | 1 Comment »

After installing all of the necessary elements for Spinx and Ultrasphinx, I began following the instructions from Snax Fauna to get the system up and running.

rake ultrasphinx:configure

worked fine, but I encountered the following error upon attempting to index my models:

rake ultrasphinx:index
...
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /usr/local/bin/indexer
Reason: image not found

In my configuration for development, I use the MAMP MySql server. The rake configure command correctly pulled all of the connection information from database.yml, so that was not the problem.

I searched around and finally encountered this solution from Michael Hartl:

$ sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql

It worked brilliantly. Thanks Michael.