-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Brew won't compile Sphinx with MySQL support #16073
Comments
I had this same problem. Mysql was already installed on my system yet this brew formula didn't think so and configured without mysql. I tried the following and it worked:
Perhaps this command can be added to the Caveats text as an example of how to force a compile against mysql. |
Worked! Thanks @schlick. Curious... If I put |
Issue because of and vs && differences, and calling which without parens. Posting a fix. |
There's a problem with the formula. If you have PG and MySQL installed on your system there's no way to force Sphinx installation with mysql option. Gonna do a PR for you. |
A pull request is now available to fix this problem when you've both PGsql and MySQL installed on your system. |
With MySQL and Postgres installed when I run
brew install sphinx
brew dynamically addswithout-mysql
into args.After some debugging i realize that
build.include?('mysql')
andwhich 'mysql_config'
both returns nil.So, after commented out:
and added this:
Everything works.
Should MySQL and Postgres be supported default? How can I force MySQL support?
Brew doctor outputs
Your system is raring to brew.
Thank You, and sorry for my english.
The text was updated successfully, but these errors were encountered: