Skip to content

Instantly share code, notes, and snippets.

@sprice
Created December 16, 2010 01:39
Show Gist options
  • Save sprice/742897 to your computer and use it in GitHub Desktop.
Save sprice/742897 to your computer and use it in GitHub Desktop.

Installing Sphinx on OSX 10.6 with MAMP 1.9.4

The MAMP 1.9.4 MySQL installation is missing the include directory and certain libraries.

Download the MAMP 1.9 Components

Extract mysql-5.1.44.tar.gz and compile to /opt/local

cd mysql-5.1.44
./configure --prefix=/opt/local
make
sudo make install

Copy the include directory to the MAMP installation

cp /opt/local/include /Applications/MAMP/Library/

Copy some missing libraries

cp /opt/local/lib/mysql/libmysqlclient* /Applications/MAMP/Library/lib/mysql/

Update your PATH in ~/.profile file.

export PATH=/Applications/MAMP/Library/bin:$PATH
export PATH=/Applications/MAMP/Library/include/mysql:$PATH

source ~/.profile

Install Homebrew

Install sphinx

brew install sphinx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment