While setting up a Rails project in my machine, I got this error. First I can’t understand why this error coming, because I am successfully using mysql database in this project, and mysql server is running in my system. The error line number shows near the Sphinx code ‘Model.search’, then I understood this is because of the wrong set up of my sphinx configuration. But why this error? I read some documents and understood that sphinx internally using mysql protocol, so showing this error. Anyway I am checking my sphinx configuration, and no yml config file of sphinx found! So I have some works to do now!
I followed these steps,
Configure Sphinx in Rails 3.2
And all works fine!!
Check sphinx is already installed in your system,
If you have already sphinx installed then it will show the sphinx version and other info, else it shows ubuntu information to install.
Download thinking sphinx from
$ tar -xzf sphinx-2.0.8-release.tar.gz
$ cd sphinx-2.0.8-release/
$ sudo make install
it will show the sphinx release and the other information.
Add the sphinx gem into your Gemfile
Do bundle install
$ bundle install
I assume you already made the model / controller code for sphinx. Else see this
Index all your records
$ rake ts:index -t
While indexing sphinx will generate the configuration file inside RAILS_ROOT/config/config/development.sphinx.conf
If you need to generate only configuration file not indexing you can use this command
$ rake ts:configure -t
Run sphinx searchd daemon
$ rake ts:start -t
You can stop sphinx searchd daemon
$ rake ts:stop -t
You can reindex so that sphinx will re index all records without creating a configuration file.
$ rake ts:reindex -t
Enjoy Sphinx searching!
$ sudo apt-get -f install
For 32 bit:
$ sudo apt-get install libqt4-webkit
Download and install Skype
$ wget -O skype-linux.deb http://download.skype.com/linux/skype-ubuntu-lucid_18.104.22.168-1_i386.deb
$ sudo dpkg -i skype-linux.deb
Open the terminal and type
noobslab install skype