Rails, Mysql native bindings 2.7 on Centos
This post over on the RoR blog a few days back talks about upgrading to the new mysql native bindings for ruby to get the best performance.
However, I’ve been unable to get it to install using gem, a la :
gem install mysql
as I have been getting compile errors:
ERROR: While executing gem - (RuntimeError) ERROR:
Failed to build gem native extension.
Despite the number of solutions to this out there, I’ve only now found one that works with my particular setup, namely centos 4.2, and that can be found in this post
I should point out that I didn’t need to edit the makefile or anything, I just ran make, make install in the
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
folder.
All working now, which is nice.