Upgraded to Snow Leopard and now TS configuration is broken

17 views
Skip to first unread message

Neil

unread,
Nov 6, 2010, 8:08:48 PM11/6/10
to Thinking Sphinx
I just upgraded to Snow Leopard using the easy overwrite install
(rather than a clean-slate), and now Thinking Sphinx is struggling
with the config settings that used to work on Leopard 10.5.8. Does
anyone know how to fix this? I'm sure Sphinx is sat in exactly the
same place as it was before (using Macports, IIRC):

---------
rake ts:index
(in /Users/Neil/Sites/someapp)
sh: line 1: 94953 Trace/BPT trap indexer 2>&1
sh: line 1: 94956 Trace/BPT trap 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
---------

Pat Allan

unread,
Nov 6, 2010, 8:42:22 PM11/6/10
to thinkin...@googlegroups.com
Hi Neil

What happens if you call indexer on the command line? I'm guessing Sphinx needs to be reinstalled.

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>

Neil

unread,
Nov 7, 2010, 12:16:53 PM11/7/10
to Thinking Sphinx
Hi Pat

$ indexer
dyld: Library not loaded: /usr/local/mysql/lib/libmysqlclient.15.dylib
Referenced from: /usr/local/bin/indexer
Reason: image not found
Trace/BPT trap

MySQL seems to be working just fine, though.

p.s. Long time no speak! You may remember helping me out over email a
couple of years back when I had some huge indexing times.

Pat Allan

unread,
Nov 7, 2010, 6:27:43 PM11/7/10
to thinkin...@googlegroups.com
Hi Neil

I hit this problem a while ago (back when I upgraded to Snow Leopard myself, I guess). The docs cover this situation:
http://freelancing-god.github.com/ts/en/installing_sphinx.html

In short, you should hopefully just need to run the following command - although I really don't feel this is a *smart* approach, but I couldn't find anything better.

sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql

And welcome back - hopefully those indexing times have been nice and fast since :)

--
Pat

Neil

unread,
Nov 8, 2010, 2:15:45 AM11/8/10
to Thinking Sphinx
I'm seeing:

$ sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
ln: /usr/local/mysql/lib/mysql: No such file or directory
$ which mysql
/opt/local/bin/mysql

MySQL is installed via Macports. Do I need to adjust the first
argument in the symlink to use the /opt/local/bin/mysql? I can't see a
mysql/lib folder within /opt/local/bin (although I could definitely be
missing something!).

Thanks, yes, the indexing times are down!

Pat Allan

unread,
Nov 8, 2010, 7:23:47 AM11/8/10
to thinkin...@googlegroups.com
Ah yes, your symlink will definitely need to be different. I'm not exactly sure where it should point (I've never really used MacPorts - I used to compile by hand, these days I use Homebrew). Perhaps search around for libmysqlclient.*?

--
Pat

Neil

unread,
Nov 8, 2010, 12:15:11 PM11/8/10
to Thinking Sphinx
Thanks Pat. I've tracked down the files:

$ port contents mysql5 |grep libmysqlclient
/opt/local/lib/mysql5/mysql/libmysqlclient.16.dylib
/opt/local/lib/mysql5/mysql/libmysqlclient.a
/opt/local/lib/mysql5/mysql/libmysqlclient.dylib
/opt/local/lib/mysql5/mysql/libmysqlclient.la
/opt/local/lib/mysql5/mysql/libmysqlclient_r.16.dylib
/opt/local/lib/mysql5/mysql/libmysqlclient_r.a
/opt/local/lib/mysql5/mysql/libmysqlclient_r.dylib
/opt/local/lib/mysql5/mysql/libmysqlclient_r.la

Am I still symlinking 'mysql' or do I need to symlink
'libmysqlclient'?

Pat Allan

unread,
Nov 8, 2010, 5:26:48 PM11/8/10
to thinkin...@googlegroups.com
You'll want to symlink mysql - maybe something like:

sudo mkdir -p /usr/local/mysql/lib
sudo ln -s /opt/local/lib/mysql5/mysql /usr/local/mysql/lib/mysql

Hope this does the trick :)

--
Pat

Neil

unread,
Nov 9, 2010, 1:48:27 AM11/9/10
to Thinking Sphinx
Thanks Pat - unfortunately the symlink didn't do the trick, but I
installed Sphinx via Macports and it seems to have done the trick!

Pat Allan

unread,
Nov 9, 2010, 1:50:58 AM11/9/10
to thinkin...@googlegroups.com
Ah, good to know it's all sorted in the end :)

--
Pat

Reply all
Reply to author
Forward
0 new messages