Install Sphinx 1.10 Beta on Mac OS X 10.6 Snow Leopard with MAMP 1.9.4
If you already have MAMP installed then follow these steps to configure MAMP and install Sphinx Search.
Prerequisites for Installing Sphinx on Mac OS X
- Install MAMP
Configure MAMP 1.9.4 to work with Sphinx 1.10 Beta
By default, MAMP is missing some components that Sphinx requires. These steps will upgrade your MAMP install with the required components.
Download MAMP_components_1.9.dmg. After the file is done downloading double click on it to mount the DMG. Once the DMG is mounted navigate to the MAMP_src folder.

Once in the folder find the mysql-5.1.44.tar.gz file. Once you find the file drag it to your downloads folder. Once in Downloads double click on mysql-5.1.44.tar.gz to extract it.

Next, startup Terminal and enter the following
cd ~/Downloads/mysql-5.1.44
and hit enter.
Now enter the following, this will configure MySQL for your system:
sudo ./configure --with-unix-socket-path=/Applications/MAMP/tmp/mysql/mysql.sock --without-server --prefix=/Applications/MAMP/Library
Then enter the text below, this will compile MySQL:
sudo make -j2
This command will copy the libs to your MAMP directory
sudo cp libmysql/.libs/*.dylib /Applications/MAMP/Library/lib/mysql
The next two commands make a directory and then copy the header files.
sudo mkdir /Applications/MAMP/Library/include
sudo cp -R include /Applications/MAMP/Library/include/mysql
Download and Extract Sphinx 1.10 Beta on Mac OS X 10.6 Snow Leopard with Terminal
Change to your home directory:
cd ~
Download Sphinx 1.10 Beta:
curl -L -O http://www.sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz
Extract Sphinx:
tar -xzf sphinx-1.10-beta.tar.gz
Change to the Sphinx directory:
cd sphinx-1.10-beta
Download and Extract libstemmer on Mac OS X 10.6 Snow Leopard with Terminal
Download the libstemmer source code. this is so Sphinx can get to the root of a word:
curl -O http://snowball.tartarus.org/dist/libstemmer_c.tgz
Extract libstemmer:
tar -xzf libstemmer_c.tgz
Configure and Install Sphinx on Mac OS X 10.6 Snow Leopard with libstemmer Support
Configure the Sphinx installer: Note, there are two ways to install Sphinx you can use the command below to install Sphinx into the local directory or you can give Sphinx its own directory in local with the second command. Make sure to only run one of the commands though.
sudo ./configure --prefix=/usr/local --with-libstemmer --with-mysql=/Applications/MAMP/Library
sudo ./configure --prefix=/usr/local/sphinx --with-libstemmer --with-mysql=/Applications/MAMP/Library
Build Sphinx:
sudo make
Install Sphinx:
sudo make install
You should now have Sphinx installed in your /etc/local directory or your /etc/local/sphinx directory depending on how you installed it.
Next Steps after Installing Sphinx
- Configure sphinx.conf on Mac OS X Snow Leopard 10.6
- Running the Sphinx indexer
- Starting Sphinx's searchd on Mac OS X 10.6 Snow Leopard