Posted: July 21st, 2009 | Author: mindtonic | Filed under: Development | Tags: BackgrounDRb, ultrasphinx | No Comments »
Now that we are beginning to sort out some of our biggest issues, we are going to need daemon monitoring. I will elaborate as I work through the process, but for now this looks like a whoop-ass solution!
http://github.com/FooBarWidget/daemon_controller/tree/master
Posted: June 24th, 2009 | Author: mindtonic | Filed under: Rails Plugins | Tags: rails, ruby, shoulda, sphinx, ultrasphinx | 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
Posted: June 24th, 2009 | Author: mindtonic | Filed under: Rails Plugins | Tags: mysql, rails, ruby, sphinx, ultrasphinx | 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.