Hi Mark You can use Sphinx via source or via apt (or other packaging systems). It's not written in Ruby, and so it isn't available as a gem (there is a gem called sphinx, it's an alternative ruby wrapper for the Sphinx search tool).
I think what's causing the warning you first described is the old version of Thinking Sphinx you're using - try 1.4.10 instead, which can handle the latest Sphinx releases. Cheers -- Pat On 18/12/2011, at 1:09 AM, Mark L. wrote: > I tried another install on Ubuntu, and the output at the command line > is... > > ubuntu@domU-12-31-39-07-38-86:~/hls$ which searchd > /usr/bin/searchd > ubuntu@domU-12-31-39-07-38-86:~/hls$ searchd > Sphinx 0.9.8.1-release (r1533) > Copyright (c) 2001-2008, Andrew Aksyonoff > > FATAL: no readable config file (looked in /etc/sphinxsearch/ > sphinx.conf, ./sphinx.conf). > > ...so according to this I am using Sphinx 0.9.8.1-release (r1533). > > I am a little confused on installing from source vs. just installing > from the repo and gems. On this particular setup I did `sudo apt-get > install sphinxsearch` and then installed the thinking-sphinx gem (v > 1.3.16). Should this be sufficient for thinking [and thinking sphinx] > to be installed and configured? The install page here... > > http://freelancing-god.github.com/ts/en/installing_sphinx.html > > ...does not mention the gem and makes it sound like if u are using > unix that u must install from source. > > On Dec 16, 9:12 pm, Pat Allan <[email protected]> wrote: >> You don't need to worry about the files in /usr/local/etc - they're just >> example files, Thinking Sphinx generates Sphinx config files in your app's >> config directory. >> >> What version of Thinking Sphinx are you using? The latest releases work with >> Sphinx 2.0.2, and it looks like your Sphinx installation is in a standard >> location (and thus in the PATH for your user). >> >> -- >> Pat >> >> On 17/12/2011, at 5:55 AM, Mark L. wrote: >> >>> ...also in /user/local/etc and there are the files sphinx.conf.dist >>> sphinx-min.conf.dist but the contents of both of these reference >>> mysql, and I am using postgres. >> >>> On Dec 16, 9:22 am, "Mark L." <[email protected]> wrote: >>>> ...thanx for the response Pat...heres the output you requested... >> >>>> [jlocklear@jlocklear hls]$ which searchd >>>> /usr/local/bin/searchd >>>> [jlocklear@jlocklear hls]$ searchd >>>> Sphinx 2.0.2-beta (r3019) >>>> Copyright (c) 2001-2011, Andrew Aksyonoff >>>> Copyright (c) 2008-2011, Sphinx Technologies Inc (http:// >>>> sphinxsearch.com) >> >>>> FATAL: no readable config file (looked in /usr/local/etc/ >>>> sphinx.conf, ./sphinx.conf). >> >>>> On Dec 16, 2:32 am, Pat Allan <[email protected]> wrote: >> >>>>> Hi Mark >> >>>>> config/sphinx.yml does not get created automatically - it's optional. How >>>>> did you install Sphinx? What's the output when you run `searchd` and >>>>> `which searchd` on the command line? >> >>>>> -- >>>>> Pat >> >>>>> On 16/12/2011, at 11:53 AM, Mark L. wrote: >> >>>>>> Should this be installed when you install the gem? I have an app I am >>>>>> trying to configure that is running rails 2.3.14, and have installed >>>>>> both sphinx and thinking sphinx and am trying to run 'rake >>>>>> db:migrate', and I get the error... >> >>>>>> [jlocklear@jlocklear hls]$ rake db:migrate >>>>>> Pure ruby mysql.rb driver used! >>>>>> Cannot find or read /home/jlocklear/railsApps/hls/config/newrelic.yml >> >>>>>> 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 >>>>>> == AddsomeIndexes: migrating >>>>>> ================================================= >>>>>> -- add_index(:cars, :workflow_state, {:name=>"index_workflow_state"}) >>>>>> rake aborted! >>>>>> An error has occurred, this and all later migrations canceled: >> >>>>>> PGError: ERROR: relation "cars" does not exist >>>>>> : CREATE INDEX "index_workflow_state" ON "cars" ("workflow_state") >> >>>>>> Tasks: TOP => db:migrate >>>>>> (See full trace by running task with --trace) >> >>>>>> -- >>>>>> 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 >>>>>> 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 >>> 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. > -- 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.
