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

How do I correct the following error? I am running using Ubuntu 11.10

*********************88

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

···

--
Posted via http://www.ruby-forum.com/.

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 Rex