UnZip the Zip File and go to the
sphinx
subdirectory:$ tar xzvf sphinx-0.9.8.tar.gz
$ cd sphinxRun the configuration program:
$ ./configure
There's a number of options to configure. The complete listing may be obtained by using
--help
switch. The most important ones are:--prefix
, which specifies where to install Sphinx; such as--prefix=/usr/local/sphinx
(all of the examples use this prefix)--with-mysql
, which specifies where to look for MySQL include and library files, if auto-detection fails;--with-pgsql
, which specifies where to look for PostgreSQL include and library files.
Build the binaries:
$ make
Install the binaries in the directory of your choice: (defaults to
/usr/local/bin/
on *nix systems, but is overridden withconfigure --prefix
)$ make install
Installing Sphinx On Windows
Extract .zip file you have downloaded -
sphinx-0.9.8-win32.zip
(orsphinx-0.9.8-win32-pgsql.zip
if you need PostgresSQL support as well.)For the remainder of this guide, we will assume that the folders are unzipped into
C:\Sphinx
, such thatsearchd.exe
can be found inC:\Sphinx\bin\searchd.exe
. If you decide to use any different location for the folders or configuration file, please change it accordingly.Install the
searchd
system as a Windows service:C:\Sphinx> C:\Sphinx\searchd --install --config C:\Sphinx\sphinx.conf --servicename SphinxSearch
The
searchd
service will now be listed in the Services panel within the Management Console, available from Administrative Tools. It will not have been started, as you will need to configure it and build your indexes withindexer
before starting the service.
No comments:
Post a Comment