Installing Sphinx on MacOS X
Installing Sphinx with Homebrew is pretty easy - and it’ll automatically detect whether you have MySQL and/or PostgreSQL installed and ensure Sphinx supports either/both when compiling.
At the time of writing, Homebrew will install Sphinx 2.0.6 (which is the oldest version allowed if you’re running Thinking Sphinx v3.x). Make sure you do have MySQL installed so the SphinxQL/mysql41 protocol behaves correctly.
If you’ve installed MySQL after installing Sphinx, you’ll need to re-install Sphinx. This can be done like so:
Much like Homebrew, MacPorts will automatically detect whether it should compile Sphinx with MySQL and/or PostgreSQL support, and currently defaults to Sphinx 2.0.6 as well.
You may need to run the above command with sudo depending on your permissions setup.
If you don’t have either Homebrew or MacPorts installed, then you could install either of them, or just compile Sphinx yourself. This will require the MacOS Developer Tools (but then, so will either of the package managers), but should work without much hassle.