Sphinx notes I

Still installing...

Sphinx’ installer makes a couple of directories in /usr/local/var


matt@blacksmith:~/sources/sphinx-0.9.8.1$ sudo make install
[sudo] password for matt: 
Making install in src
make[1]: Entering directory `/home/matt/sources/sphinx-0.9.8.1/src'
if test -d ../.svn; then svn info .. --xml | perl svnxrev.pl; fi;
make  install-am
make[2]: Entering directory `/home/matt/sources/sphinx-0.9.8.1/src'
make[3]: Entering directory `/home/matt/sources/sphinx-0.9.8.1/src'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
  /usr/bin/install -c 'indexer' '/usr/local/bin/indexer'
  /usr/bin/install -c 'searchd' '/usr/local/bin/searchd'
  /usr/bin/install -c 'search' '/usr/local/bin/search'
  /usr/bin/install -c 'spelldump' '/usr/local/bin/spelldump'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1/src'
make[2]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1/src'
make[1]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1/src'
Making install in test
make[1]: Entering directory `/home/matt/sources/sphinx-0.9.8.1/test'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1/test'
make[1]: Entering directory `/home/matt/sources/sphinx-0.9.8.1'
make[2]: Entering directory `/home/matt/sources/sphinx-0.9.8.1'
test -z "/usr/local/etc" || mkdir -p -- "/usr/local/etc"
 /usr/bin/install -c -m 644 'sphinx.conf.dist' '/usr/local/etc/sphinx.conf.dist'
 /usr/bin/install -c -m 644 'sphinx-min.conf.dist' '/usr/local/etc/sphinx-min.conf.dist'
 /usr/bin/install -c -m 644 'example.sql' '/usr/local/etc/example.sql'
make  install-data-hook
make[3]: Entering directory `/home/matt/sources/sphinx-0.9.8.1'
mkdir -p /usr/local/var/data && mkdir -p /usr/local/var/log
make[3]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1'
make[2]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1'
make[1]: Leaving directory `/home/matt/sources/sphinx-0.9.8.1'

…but in the ultrasphinx notes they say

Next, copy the examples/default.base file to RAILS_ROOT/config/ultrasphinx/default.base. This file sets up the Sphinx daemon options such as port, host, and index location. 

… which is fine. That file contains a path variable that presumably needs to be changed

#<% path = "/opt/local/var/db/sphinx/" %>
<% path = "/usr/local/var/" %>

next

Well that was fun. After reaching ‘Hello World’ with ultrasphinx, I find that it’s been expired in favor of Thinking Sphinx. Jussst dandy.

tags

sphinx, rails

 

Silver-button-twitter-bird