20Jan/103
Thinking Sphinx cannot find Sphinx
I was getting this error this morning after setting up my new laptop for the project I am working on:
1 2 3 4 5 6 7 8 9 10 11 12 13 | sh: line 1: 326 Trace/BPT trap indexer 2>&1 sh: line 1: 329 Trace/BPT trap /usr/local/bin/indexer 2>&1 Sphinx cannot be found on your system. You may need to configure the following settings in your config/sphinx.yml file: * bin_path * searchd_binary_name * indexer_binary_name For more information, read the documentation: http://freelancing-god.github.com/ts/en/advanced_config.html rake aborted! uninitialized constant MysqlCompat::MysqlRes |
Everyone probably knows this, but I wild-goose-chased trying to figure out if I had a setting wrong in my sphinx.yml file for Thinking Sphinx this morning for like half an hour before I realized what Thinking Sphinx meant about "Sphinx cannot be found on your system." was that the MySQL Development headers weren't installed. I fixed this with a simple port install on Mac.
1 | port install mysql5-devel |
The more you know.
January 20th, 2010 - 17:37
Ah, TS isn’t smart enough to figure out the cause of the error – it just tries to run indexer and check for specific output (ie: the version number)… and if anything fails, it assumes indexer isn’t actually there.
Hadn’t thought of problems like this – if/when I have the time, I’ll try to make the message a bit smarter. Thanks for sharing!
January 22nd, 2010 - 14:47
Hey pat, thanks for the great software!
February 11th, 2010 - 12:02
If you install mysql with mysql5-server-devel and get this same error try creating this symlink:
sudo ln -s /opt/local/lib/mysql5/mysql/libmysqlclient.16.dylib /usr/local/mysql/lib/libmysqlclient.16.dylib