Install Sphinx & Thinking Sphinx in Debian

Install Sphinx & Thinking Sphinx in Debian

edit

Posted by Vince Wadhwani on Jun 28, 2008

I've been using Ferret to do searches in BuyIndie for a quite a while now. It works ok but I know there are better solutions out there. One of those that I'm experimenting with is Sphinx. If you want to play along and install it along with the Thinking 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 update
sudo apt-get dist-upgrade
sudo apt-get install build-essential
sudo apt-get install libmysqlclient15-dev

2. Download Sphinx. The latest code can be grabbed from their website

3.Untar the source and prep . Here's where it gets a bit complicated. You'll need to extract the source, change into the directory and configure Sphinx. Do that with these commands.

tar xvzf sphinx-0.9.8-rc2.tar.gz
cd sphinx-0.9.8-rc2/
./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql

4. Make and Install Sphinx Run the standard linux commands to install Sphinx.

make
sudo make install

Hey, 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.git

That should be it. I haven't actually started playing yet. But all signs look good so far.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值