crunchytoast.com

What's better than toast? Crunchytoast!

crunchyt sez:

This is my first website ... after 15 years of making them for everyone else! Hope you enjoy it too.

Well if 0.9.8.1 was tough, this troubled me so much I considered switching to Xapian. Don’t get me wrong, Xapian is a great looking search engine! But after playing with Sphinx for many months, I didn’t want to start from scratch!

The problem started with multi-value attributes (MVA). Basically they don’t work on SUN Solaris in Sphinx 0.9.8. MVAs worked fine on OS X 10.4.x, but the exact same indexes failed on Solaris 10.

For searching lists of related numerical attributes, MVAs are awesome (read: v.v.v.fast). So I gave it a few hours and finally got it working.

The main things to note here are:
** Sphinx 0.9.9-rc1 cannot find libmysqlclient.so.15 without adding it to LD_LIBRARY. On Solaris you use the crle tool to add directories to this list. the ldd command displays the runtime linkages for you. Being a runtime linkage, Sphinx will compile without doing this, but will fail at runtime.

** Linkage to the pthread library was actually the first failure. This library was not linked in previous Sphinx 0.9.8.1.

user# wget http://www.sphinxsearch.com/downloads/sphinx-0.9.9-rc1.tar.gz
user# su
root# crle -l /lib:/usr/lib:/opt/csw/mysql5/lib/mysql

root# export PATH=$PATH:/usr/xpg4/bin
root# LDFLAGS="-R/opt/csw/mysql5/lib/mysql/" CFLAGS="-m64"
root# ./configure --prefix=/opt/csw --with-mysql --with-mysql-includes=/opt/csw/mysql5/include/mysql/
      --with-mysql-libs=/opt/csw/mysql5/lib/mysql/ --libdir="/lib/libpthread.so"
root# make & make install

Leave a Reply