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 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-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 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/mysql

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

makesudo 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.



分享给朋友:
您可能感兴趣的文章:
随机阅读: