
上QQ阅读APP看书,第一时间看更新
- Download the latest stable version of the sphinx source from http://sphinxsearch.com/downloads.html.
$ tar -xzvf sphinx-0.9.9.tar.gz $ cd sphinx-0.9.9
- Run the configure utility:
$ ./configure -prefix=/usr/local/sphinx
- If you are on a 64 bit Mac then use the following command to configure:
LDFLAGS="-arch x86_64" ./configure --prefix=/usr/local/sphinx $ make $ sudo make install
- Next, run the make command:
$ make
- Finally, run the following command to complete your configuration:
$ sudo make install
We downloaded the Sphinx source and extracted it using the tar
command. We then configured Sphinx and built it using the make
command. The options to configure are the same as we used while installing Sphinx in Linux.
The only notable difference between installation on Linux and Mac is that if your Mac is 64 bit, your configure command is changed slightly as given above.