Is that a typo with your argument? Pretty sure it should be --with-mysql, not 
--with-sql.

On 19/04/2013, at 10:44 PM, Vell wrote:

> From a lot of my research its pointing to sphinx not being installed with 
> MYSQL support. I can't seem to figure out how to get sphinx to install with 
> MYSQL support using homebrew.
> 
> I didn't install MYSQL using homebrew and I used --with-sql=/usr/local/mysql 
> but the installation still tells me that I need to have either have MYSQL or 
> Postgres installed.
> 
> On Friday, April 19, 2013 2:58:59 PM UTC-4, Vell wrote:
> Hello all,
> 
> I am new to the group and also to thinking sphinx. I am trying to get this 
> working with a rails app that I am working on and am running into a bit of a 
> problem that I am not what to do.
> 
> When I run rake ts:index I am getting the following error:
> 
> Generating configuration to 
> /Users/vm/rails/requests2/config/development.sphinx.conf
> Sphinx 2.0.7-release (r3759)
> Copyright (c) 2001-2012, Andrew Aksyonoff
> Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
> 
> using config file 
> '/Users/vm/rails/requests2/config/development.sphinx.conf'...
> indexing index 'o_request_core'...
> ERROR: source 'o_request_core_0': unknown type 'mysql'; skipping.
> ERROR: index 'o_request_core': failed to configure some of the sources, will 
> not index.
> total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
> total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
> 
> I took a look at the /Users/vm/rails/requests2/config/development.sphinx.conf 
> and saw that in the source o_request_0 the type was set to mysql. I changed 
> it to mysql2 and re-ran rake ts:index but it just overwrote the file and 
> changed the type back to mysql. Any help is appreciated on how I can get past 
> this.
> 
> My environment is as follows:
> 
> Mac OS X 10.8
> RVM
> Rails 3.2.13 /mysql2 adapter
> thinking sphinx 3.0.2
> 
> I followed the directions on the following link for installing sphinx (using 
> homebrew)
> http://pat.github.io/thinking-sphinx/installing_sphinx/mac.html
> 
> I followed the directions on the following link to create my indexes:
> http://pat.github.io/thinking-sphinx/indexing.html
> 
> Here is the contents In my app/indices/o_request_index.rb
> 
> ThinkingSphinx::Index.define :o_request, :with => :active_record do
>   indexes justification
>   indexes simple_desc, :sortable => true
>   indexes req_details
>   indexes level, :sortable => true
>   indexes detailed_status
>   indexes o_request.submitter, :as => :request_submitter, :sortable => true
>   indexes o_request.assignee, :as => :request_assignee, :sortable => true
>   indexes o_request.request_category.request_category, :as => 
> :request_request_category, :sortable => true
>   indexes o_request.attachments, :as => :request_attachments, :sortable => 
> true
>   indexes o_request.request_type.request_type, :as => :request_request_type, 
> :sortable => true
>   indexes o_request.request_sub_type.name, :as => :request_request_sub_type, 
> :sortable => true
>   indexes o_requests.comments, :as => :request_comments, :sortable => true
>   
>   has :id, created_at, updated_at, date_needed
> 
> end
> 
> -- 
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to