官术网_书友最值得收藏!

Time for action - installation on a Mac

  1. 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 
  2. Run the configure utility:
    $ ./configure -prefix=/usr/local/sphinx 
  3. 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 
  4. Next, run the make command:
    $ make 
  5. Finally, run the following command to complete your configuration:
    $ sudo make install 

What just happened?

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.

Other supported systems

Above we learned how to install Sphinx on Linux, Windows, and Mac. However, these are not the only systems on which Sphinx can be installed. Sphinx is also supported on the following systems:

  • FreeBSD 4.x, 5.x, 6.x
  • NetBSD 1.6, 3.0
  • Solaris 9, 11

    Note

    Installation procedure for the above mentioned systems is more or less similar to how it is done on a Linux system.

主站蜘蛛池模板: 新巴尔虎左旗| 隆子县| 手机| 蒙山县| 晋州市| 府谷县| 南召县| 潜山县| 平原县| 阿拉善左旗| 综艺| 京山县| 库伦旗| 吴旗县| 奉贤区| 同仁县| 邵阳市| 卢湾区| 西平县| 庆城县| 塘沽区| 呼玛县| 许昌县| 太保市| 北安市| 墨竹工卡县| 抚州市| 荆州市| 内江市| 宽城| 鄂尔多斯市| 沭阳县| 密山市| 永清县| 宁晋县| 丹寨县| 梁平县| 新蔡县| 巴彦淖尔市| 浑源县| 洛浦县|