<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>mehblog: Rails, Mysql native bindings 2.7 on Centos</title>
    <link>http://blog.pauldalton.co.uk/articles/2005/11/08/rails-mysql-native-bindings-2-7-on-centos</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>random mumblings</description>
    <item>
      <title>Rails, Mysql native bindings 2.7 on Centos</title>
      <description>&lt;p&gt;&lt;a href="http://weblog.rubyonrails.com/archives/2005/10/30/get-10-15-more-performance-with-mysql-rails"&gt;This post over on the RoR blog&lt;/a&gt; a few days back talks about upgrading to the new mysql native bindings for ruby to get the best performance.&lt;/p&gt;


	&lt;p&gt;However, I&amp;#8217;ve been unable to get it to install using gem, a la :&lt;/p&gt;


&lt;code&gt;
gem install mysql
&lt;/code&gt;

	&lt;p&gt;as I have been getting compile errors:&lt;/p&gt;


&lt;code&gt;
ERROR: While executing gem - (RuntimeError) ERROR:
Failed to build gem native extension. 
&lt;/code&gt;

	&lt;p&gt;Despite the number of solutions to this out there, I&amp;#8217;ve only now found one that works with my particular setup, namely centos 4.2, and that can be found in &lt;a href="http://ocsforums.com/showthread.php?p=462"&gt;this post&lt;/a&gt;&lt;/p&gt;


I should point out that I didn&amp;#8217;t need to edit the makefile or anything, I just ran make, make install in the 
&lt;code&gt;
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7
&lt;/code&gt;
folder.

	&lt;p&gt;All working now, which is nice.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Nov 2005 16:58:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:929506914801db8815bd08699dd48f75</guid>
      <author>paul</author>
      <link>http://blog.pauldalton.co.uk/articles/2005/11/08/rails-mysql-native-bindings-2-7-on-centos</link>
      <category>Rails</category>
    </item>
  </channel>
</rss>
