Extract everything from the distribution tarball (haven't you already?) and go to the
sphinxsubdirectory. (We are using version 2.0.1-beta here for the sake of example only; be sure to change this to a specific version you're using.)$ tar xzvf sphinx-2.0.1-beta.tar.gz
$ cd sphinx
Run the configuration program:
$ ./configure/configure --with-mysql=/usr --with-mysql-includes=/usr/include/mysqlAlso, you may need another devel packages, not only mysql-devel.
There's a number of options to configure. The complete listing may be obtained by using
--helpswitch. 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:
$ makeInstall the binaries in the directory of your choice: (defaults to
/usr/local/bin/on *nix systems, but is overridden withconfigure --prefix)$ make install
安装sphinx
浙公网安备 33010602011771号