Compiling on Linux

Compiling on Linux

  1. Extract everything from the distribution tarball (haven't you already?) and go to the sphinx subdirectory. (We are using version 2.2.11-dev here for the sake of example only; be sure to change this to a specific version you're using.)

$ tar xzvf sphinx-2.2.11-dev.tar.gz $ cd sphinx 2. Run 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-static-mysql, which builds Sphinx with statically linked MySQL support;
  • --with-pgsql, which specifies where to look for PostgreSQL include and library files.
  • --with-static-pgsql, which builds Sphinx with statically linked PostgreSQL support;
  • Build the binaries:

$ make 4. Install the binaries in the directory of your choice: (defaults to /usr/local/bin/ on *nix systems, but is overridden with configure --prefix)

$ make install

News
Downloads
Services
Community
Resources
About