Hi,

I've got the same issue, and my problem was that the bin_path should
be with <b>correct slashes</b>, like in Linux: “c:/sphinx/bin”.
I know this won't help Dean but maybe this will help somebody else.

Kira


On 22 окт, 01:34, Pat Allan <[email protected]> wrote:
> Hi Dean
>
> A few things to note:
>
> * The service you have set up is probably looking for a generic config file - 
> hence why it fails - but you're going to provide it with a specific one, so 
> let's leave the service aside for the moment.
> * Because you've set the bin_path, you don't need paths for the indexer and 
> searchd binary names. You've also not changed the binary names, so you don't 
> need those settings, just bin_path.
> * You should add bin_path toyourdevelopment settings, rather than production.
> * Inyourenvironment.rb, :lib should be 'thinking_sphinx', not 
> 'thinking-sphinx' - underscore instead of dash.
> * You will need at least one index definition in a model to generate a valid 
> config file.
>
> Fix those things up, add an index, then try running thinking_sphinx:configure 
> again - and ts:index and ts:start :)
>
> Of course, I've never used TS on Windows myself, so I'm really not the best 
> person to help...
>
> --
> Pat
>
> On 22/10/2010, at 7:42 AM, Dean wrote:
>
> > Hi:
>
> > I'm looking for help troubleshooting several installation issues I'm
> > having with S/TS on Windows. Here's the background:
>
> > I'm using Windows XP, Rails 2.3.8, MySQL 5.1.
>
> > Downloadedsphinx:
> >    sphinx-0.9.9-win32.zip
>
> > Extracted and installed on c:\sphinx
>
> > Set PATH environment variable to include C:\Sphinx; C:\Sphinx\bin;
>
> > Installed SphinxSearch as a Windows service (it shows up under
> > Adminstrative Tools/Services), though I get an error if I try to start
> > SphinxSearch from the Services Menu (“Error 1067: The process
> > terminated unexpectedly”)
>
> > Installed thinking-sphinxgem, version 1.3.20 (but NOT the plugin.)
> > riddle (1.1.0) was also installed.
>
> > Added the following line to my Rakefile:
>
> > require ‘thinking_sphinx/tasks’
>
> > Added the following line to my environment.rb file:
> >    config.gem ‘thinking-sphinx’, :lib => ‘thinking-sphinx’, :version
> > => ‘1.3.20’
>
> > After doing all this, there was nosphinx.yml file in my rails_root/
> > config directory. Several forum posts referred to the need for it, so
> > I created it following some of the examples Ifound:
>
> > development:
> >    port: 9312
>
> > test:
> >    port: 9313
>
> > production:
> >    port: 9312
> >    indexer_binary_name: “c:/sphinx/bin/indexer”
> >    searchd_binary_name: “c:/sphinx/bin/searchd”
> >    bin_path: “c:/sphinx/bin”
>
> > At this point, I tried to run a rake task to configure
> > thinking_sphinx. I get the following output and error message:
>
> > $ rake thinking_sphinx:configure
> > (in c:/rails_projects/molex_app)
>
> >Sphinxcannotbefoundonyoursystem. You may need to configure the
> > following settings inyourconfig/sphinx.yml file:
>
> >    * bin_path
> >    * searchd_binary_name
> >    * indexer_binary_name
>
> > For more information, read the documentation:
> >http://freelancing-god.github.com/ts/en/advanced_config.html
> > Generating Configuration to c:/rails_projects/molex_app/config/
> > development.sphinx.conf
>
> > So despite the “cannotbefound” message, a configuration file was
> > actually created. Here are the contents:
>
> > indexer
> > {
> > }
>
> > searchd
> > {
> >    address = 127.0.0.1
> >    port = 9312
> >    log = c:/rails_projects/molex_app/log/searchd.query.log
> >    pid_file = c:/rails_projects/molex_app/log/searchd.development.pid
> > }
>
> > One blog post I came across suggested that I copy the libmySQL.dll
> > file from my MySQL install to C:\Windows\System32. Ifoundthe file in
> > the appropriate bin directory and installed it as suggested.
>
> > Also, when I type “searchd” from my C:\Sphinx\bin directory, I get the
> > following response:
>
> > $ searchd
> >Sphinx0.9.9-release (r2117)
> > Copyright (c) 2001-2009, Andrew Aksynoff
>
> > WARNING: forcing --console mode on Windows
> > FATAL: no readable config file (looked in ./sphinx.conf).
>
> > *What I haven’t done yet*
>
> > I need to add sections in the development.sphinx.conf file that cover
> > connection details for my MySQL database. I’m not sure how to do this.
>
> > *My questions*
>
> > Why can’t I start SphinxSearch as a Windows Service? What should I do
> > about the error message I get when I try to start it?
>
> > Why do I get the “Sphinxcannotbefound” message? What do I need to
> > do fix this problem?
>
> > Why can’t searchd find mysphinx.conf file? Where should I put it or
> > how can I directSphinxto look in the right directory?
>
> > Thanks very much foryourhelp!
>
> > Dean Richardson
> > Genlighten.com
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "ThinkingSphinx" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to