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.

Downloaded sphinx:
    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-sphinx gem, 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 no sphinx.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 I found:

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)

Sphinx cannot be found on your system. You may need to configure the
following settings in your config/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 “cannot be found” 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. I found the 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
Sphinx 0.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 “Sphinx cannot be found” message? What do I need to
do fix this problem?

Why can’t searchd find my sphinx.conf file? Where should I put it or
how can I direct Sphinx to look in the right directory?

Thanks very much for your help!

Dean Richardson
Genlighten.com

-- 
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