iCoreTech Research Labs Just a placeholder

20Aug/091

How to install Sphinx search engine in Snow Leopard, x86 and x86_64

sphinx
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-pgsql

All 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:

  1. Install MySQL and MySQL Ruby gem on Snow Leopard, 64 bit
  2. Install Git from source on Snow Leopard 64 bit
  3. How to install pg (postgresql) gem on Snow Leopard, 64 bit
  4. Install Passenger (mod_rails) in Snow Leopard 64 bit
  5. Installing MySQL Ruby Gem in Snow Leopard Server

Comments (1) Trackbacks (0)
  1. 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.


Leave a comment


No trackbacks yet.

Additional comments powered by BackType