How can I change from ruby/mysql to mysql/ruby module? [Broken PIPE problem..]

Due to the random broken pipe error in rails, (probably due to timed
out mysql connection) I am trying to use Mysql/ruby (which was coded
with C) instead of ruby/mysql (which was coded in Ruby).

Ruby/Mysql → Ruby/MySQL

Mysql/Ruby → MySQL/Ruby

Related Article about Broken pipe problem →

I am using Ubuntu 10.04, and I have successfully installed Mysql/
Ruby…but then now what? How can I complete the installing process?

  1. I was not able to remove Ruby/Mysql which is previously installed,
    because I do not know how to. How can I remove this module?

  2. What do I have to do so that Mysql/Ruby module actually runs in my

The line

/usr/bin/install -c -m 0755 /usr/local/rvm/rubies/

is the result line after I finish installing Mysql/Ruby with ‘make
install’ command in Linux.