六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 736|回复: 0

Install Sphinx & Thinking Sphinx in Debian

[复制链接]

升级  14.33%

71

主题

71

主题

71

主题

举人

Rank: 3Rank: 3

积分
243
 楼主| 发表于 2013-2-7 12:28:33 | 显示全部楼层 |阅读模式
Install Sphinx & Thinking Sphinx in Debian

  edit
Posted by Vince Wadhwani on Jun 28, 2008  
I've been using Ferret to do searches in BuyIndiefor a quite a while now. It works ok but I know there are bettersolutions out there. One of those that I'm experimenting with isSphinx. If you want to play along and install it along with theThinking Sphinx plugin, here's how you do it.
 
1. Update and Grab dependencies. Run these commands in order to get the files you need to install Sphinx.
sudo apt-get updatesudo apt-get dist-upgradesudo apt-get install build-essentialsudo apt-get install libmysqlclient15-dev2. Download Sphinx.  The latest code can be grabbed from their website
3.Untar the source and prep. Here's where it gets a bitcomplicated. You'll need to extract the source, change into thedirectory and configure Sphinx. Do that with these commands.
tar xvzf sphinx-0.9.8-rc2.tar.gzcd sphinx-0.9.8-rc2/./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql4. Make and Install Sphinx Run the standard linux commands to install Sphinx.
makesudo make installHey, congrats, you've now got Sphinx installed on Debian!  Next is to grab Thinking Sphinx.  You can do that from the root of your rails directory by running the script/plugin install command.
script/plugin install  git://github.com/freelancing-god/thinking-sphinx.gitThat should be it. I haven't actually started playing yet. But all signs look good so far.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表