For the last few hours I was trying hectically to install mysql gem in my development machine. Finally I came across this thread in superuser, which told how easy is the installation process. I thought to publish it here for later reference.Initially I tried by simply hitting
sudo gem install mysql
Unfortunately it did not work and thrown some errors. Then I tried some other ways including install the lib downloaded from Mysql site. That all was hopeless.In this thread basically two methods are given. I have applied both the steps and I am not quite sure which one worked for me.First one is
sudo gem uninstall mysqlsudo apt-get install libmysqlclient-dev -ysudo gem install mysql
And the second one is
sudo apt-get install libmysql-ruby.