Dear Pat Allan,

Thanks very much for your help, I think you are right. MySQL2 was affected 
by an old MySQL installation.

For the record, this worked:

Removed all installations of MySQL and Sphinx
  brew uninstall mysql, brew uninstall mysql@5.7
  brew uninstall sphinx

Reinstalled MySQL@5.7 and Sphinx
  brew install mysql@5.7
  brew install sphinx

Ran 'gem install mysql2' from command line including the following '--with' 
flags. I think the path to 'mysql_config' is what made this work. This 
seems to correct the earlier error 
  Cannot find mysql_config at /usr/local/bin/mysql_config
when running gem install mysql2 without the flags.

  *gem install mysql2 --   
 --with-mysql-config=/usr/local/Cellar/mysql@5.7/5.7.29/bin/mysql_config 
--with-cflags=\"-I/usr/local/opt/openssl/include\" 
--with-ldflags=\"-L/usr/local/opt/openssl/lib\"*


Yours,
Justin Underwood


On Monday, March 30, 2020 at 12:30:43 PM UTC+1, Justin Underwood wrote:
>
> I am using macOS Mojave 10.14.6.
>
> I am trying to configure Sphinx to use MySQL database for a Ruby on Rails 
> project.
>
> I have been using Homebrew to install both Sphinx and MySQL. MySQL 
> installs correctly with Homebrew.
>
>
> I am experiencing errors running ./configure --with-mysql
>
> I get the. error 
>
> *ERROR: cannot find MySQL include files.*
>
> Check that you do have MySQL include files installed.
> The package name is typically 'mysql-devel'.
>
> If include files are installed on your system, but you are still getting
> this message, you should do one of the following:
>
> 1) either specify includes location explicitly, using 
> --with-mysql-includes;
> 2) or specify MySQL installation root location explicitly, using 
> --with-mysql;
> 3) or make sure that the path to 'mysql_config' program is listed in
>    your PATH environment variable.
>
> To disable MySQL support, use --without-mysql option.
>
>
> How should the include files be linked to? Should these files be installed 
> manually. If so how.
>
> Yours,
>
> Justin Underwood
>
> database creations.co.uk
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to thinking-sphinx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/thinking-sphinx/02a30ee3-997b-4ab0-b734-302327b12be2%40googlegroups.com.

Reply via email to