jesseadams / sphinx-cookbook

Chef cookbook for Sphinx Search (searchd)
14 stars 27 forks source link

Support Percona Server #13

Closed antono closed 11 years ago

jesseadams commented 11 years ago

Thanks for submitting this. I am merging and testing this now.

jesseadams commented 11 years ago

Testing on Ubuntu 12.04 LTS this isn't working.

configuring Sphinx
------------------

checking for CFLAGS needed for pthreads... -pthread
checking for LIBS needed for pthreads... -lpthread
checking for pthreads... found
checking for pthread_mutex_timedlock... yes
checking whether to compile with MySQL support... yes
checking for mysql_config... mysql_config
checking for mysql_real_connect... no
checking for mysql_real_connect... no
checking MySQL include files...
STDERR: configure: error: missing include files.

******************************************************************************
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.
******************************************************************************
---- End output of "bash"  "/tmp/chef-script20130813-1127-11zigzb-0" ----
Ran "bash"  "/tmp/chef-script20130813-1127-11zigzb-0" returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
jesseadams commented 11 years ago

Please see the antono-master branch for additional changes required with the current master.

kesor commented 11 years ago

The error during configure you pasted above (on my system, ubuntu precise) was caused by a missing libssl-dev that none of the other cookbooks install. Just adding that package before the configure phase solved the problem.

When you look at config.log in the sphinx folder it says that the actual problem while compiling the "find include files" test script is missing -lssl.

jesseadams commented 11 years ago

@kesor - Thanks for researching it. My latest tests look good. Going to merge this in soon and deploy 0.6.5

jesseadams commented 11 years ago

@antono This was merged in. Thanks for your contribution!

antono commented 11 years ago

Thanks! On Sep 10, 2013 8:50 PM, "Jesse Adams" notifications@github.com wrote:

@antono https://github.com/antono This was merged in. Thanks for your contribution!

— Reply to this email directly or view it on GitHubhttps://github.com/jesseadams/sphinx-cookbook/pull/13#issuecomment-24180674 .