Sphinx Quick Fix
Here’s one small filesystem tweak that’s been handy as I’ve been slowly rebuilding my development environment on Leopard over the last couple of days. It’s to get Sphinx working – there was no problems with compilation or installation, but when I ran searchd or indexer, it complained about not finding the mysql libraries:
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /usr/local/bin/indexer
Reason: image not found
Now, the expected file path is incorrect – it shouldn’t have the second ‘mysql’. My attempts to change that with various configuration flags didn’t work, so I cheated, and added the folder as a symbolic link:
sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
Suggestions of a cleaner solution always welcome.
Comments
2 responses to this article
Hi Jon
Good to know this post was helpful to someone. Looking at the other solution, I’m not sure which is better – they are using an Apple CLI tool, so perhaps that’s the recommended solution… but like you, I don’t have my head around the mechanics of it all, so I’m not sure.

Subscribe to the RSS feed