Incorrect MySQL client library version! This gem was compiled for 5.5.13 but the client library

How do I correct the following error? I am using 64-bit laptop that has
dual boot for Ubuntu 11.10.


Incorrect MySQL client library version! This gem was compiled for 5.5.13
but the client library is 5.1.58. (RuntimeError)

You probably need to update your MySQL (the library, not the gem) to
version 5.5.13.

Alternatively, if you can’t do it, try using an older version of the
gem, compiled for MySQL 5.1.58.

– Matma R.