Skip to content

Instantly share code, notes, and snippets.

@cspeer
Forked from terenceponce/instructions.md
Created December 2, 2012 17:44
Show Gist options
  • Select an option

  • Save cspeer/4190111 to your computer and use it in GitHub Desktop.

Select an option

Save cspeer/4190111 to your computer and use it in GitHub Desktop.
Setting up Thinking-Sphinx on Mac OS X using Homebrew

Out of the box, Homebrew does a default installation on Sphinx:

$ brew install sphinx

However, if you're using MySQL, the thinking-sphinx gem won't work because it needs to use MySQL libraries.

If you managed to screw up the first time, uninstall sphinx first:

$ brew remove sphinx

and do an interactive reinstallation:

$ brew install --interactive sphinx

This will take you to the installation folder, so you can do additional commands yourself. Add MySQL dependencies by doing:

$ ./configure --with-mysql

$ make

$ make install

@peterampazzo
Copy link
Copy Markdown

How can I remove sphinx if I used the interactive reinstallation?

@Ad1n
Copy link
Copy Markdown

Ad1n commented Jan 22, 2019

brew remove sphinx

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