20Aug/091
How to install Sphinx search engine in Snow Leopard, x86 and x86_64

Sphinx is a free and open source SQL full-text search engine.
I assume you already have installed Xcode from Snow Leopard DVD.
First step is to download Sphinx, for this little guide we are going to use a beta.
cd into your favourite directory, mine is 'src' in my homedir.
cd src curl -O http://www.sphinxsearch.com/downloads/sphinx-0.9.9-rc2.tar.gz
Decompress:
tar zxvf sphinx-0.9.9-rc2.tar.gz cd sphinx-0.9.9-rc2/
For 32-bit users:
./configure --prefix=/usr/local
For 64-bit users:
LDFLAGS="-arch x86_64" ./configure --prefix=/usr/local
Remember that you can also specify sphinx to use MySQL this way, by appending this string to ./configure:
--with-mysql=/usr/local/mysql
or/and PostgreSQL
--with-pgsqlAll users:
make sudo make install
We are done.
If you encounter some errors, be sure to search for 'mysql' in this website, and follow the guide.
Related posts:
- Install MySQL and MySQL Ruby gem on Snow Leopard, 64 bit
- Install Git from source on Snow Leopard 64 bit
- How to install pg (postgresql) gem on Snow Leopard, 64 bit
- Install Passenger (mod_rails) in Snow Leopard 64 bit
- Installing MySQL Ruby Gem in Snow Leopard Server
Enjoy this article?
Additional comments powered by BackType
September 29th, 2009 - 02:13
hey, did you use which mysql for the path –with-mysql=
I recently upgraded to snow leopard and i am getting a bin_path error on indexing that i cant get around.