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

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.


One Comment on “Ultrasphinx MySql Location Error”

  1. 1 macromedia said at 11:16 AM on July 7th, 2009:

    Nice!

    Internet Explorer 6.0Windows XP
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)

Leave a Reply