Install the mysql2 gem for a specific mysql client version?
问题 I'm trying to use the mysql2 gem with rails 3.1.0.rc6, but I'm having some problem with my mysql client. I'm getting this message when trying to start my server. Incorrect MySQL client library version! This gem was compiled for 5.1.53 but the client library is 5.5.14. (RuntimeError) How do I compile/install mysql2 so that is can use mysql 5.5.14? I've tried using gem pristine mysql2 without success. 回答1: The problem here was that the MySQL2 gem was compiled for the MySQL version installed by