Ultrasphinx MySql Location Error
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.
Nice!
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)