<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ruby, Mysql, CentOS 5, and 64-bit</title>
	<atom:link href="http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/feed" rel="self" type="application/rss+xml" />
	<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23</link>
	<description>about fetching, interpreting, and executing.</description>
	<lastBuildDate>Mon, 14 Jun 2010 22:21:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: david</title>
		<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/comment-page-1#comment-7245</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 15 Apr 2009 08:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.gibberishcode.net/?p=23#comment-7245</guid>
		<description>heh, nevermind, got it.
% sudo  yum install mysql-devel
 sudo gem install mysql -- --with-mysql-config=/usr/lib64/mysql/mysql_config  
Building native extensions.  This could take a while...
Successfully installed mysql-2.7
1 gem installed

schweet</description>
		<content:encoded><![CDATA[<p>heh, nevermind, got it.<br />
% sudo  yum install mysql-devel<br />
 sudo gem install mysql &#8212; &#8211;with-mysql-config=/usr/lib64/mysql/mysql_config<br />
Building native extensions.  This could take a while&#8230;<br />
Successfully installed mysql-2.7<br />
1 gem installed</p>
<p>schweet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/comment-page-1#comment-7244</link>
		<dc:creator>david</dc:creator>
		<pubDate>Wed, 15 Apr 2009 08:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.gibberishcode.net/?p=23#comment-7244</guid>
		<description>% uname 
2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

% sudo gem install mysql -- --with-mysql-config=/usr/lib64/mysql/mysql_config  Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
	ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install mysql -- --with-mysql-config=/usr/lib64/mysql/mysql_config
checking for mysql_ssl_set()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/ruby
	--with-mysql-config


Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

looks like this is killing it:
less /usr/lib64/ruby/gems/1.8/gems/mysql-2.7/mkmf.log
error: mysql/mysql.h: No such file or directory

where/how did you get the mysql headers?</description>
		<content:encoded><![CDATA[<p>% uname<br />
2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux</p>
<p>% sudo gem install mysql &#8212; &#8211;with-mysql-config=/usr/lib64/mysql/mysql_config  Building native extensions.  This could take a while&#8230;<br />
ERROR:  Error installing mysql:<br />
	ERROR: Failed to build gem native extension.</p>
<p>/usr/bin/ruby extconf.rb install mysql &#8212; &#8211;with-mysql-config=/usr/lib64/mysql/mysql_config<br />
checking for mysql_ssl_set()&#8230; no<br />
checking for mysql.h&#8230; no<br />
checking for mysql/mysql.h&#8230; no<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.</p>
<p>Provided configuration options:<br />
	&#8211;with-opt-dir<br />
	&#8211;without-opt-dir<br />
	&#8211;with-opt-include<br />
	&#8211;without-opt-include=${opt-dir}/include<br />
	&#8211;with-opt-lib<br />
	&#8211;without-opt-lib=${opt-dir}/lib<br />
	&#8211;with-make-prog<br />
	&#8211;without-make-prog<br />
	&#8211;srcdir=.<br />
	&#8211;curdir<br />
	&#8211;ruby=/usr/bin/ruby<br />
	&#8211;with-mysql-config</p>
<p>Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql-2.7 for inspection.<br />
Results logged to /usr/lib64/ruby/gems/1.8/gems/mysql-2.7/gem_make.out</p>
<p>looks like this is killing it:<br />
less /usr/lib64/ruby/gems/1.8/gems/mysql-2.7/mkmf.log<br />
error: mysql/mysql.h: No such file or directory</p>
<p>where/how did you get the mysql headers?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James B. Byrne</title>
		<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/comment-page-1#comment-6713</link>
		<dc:creator>James B. Byrne</dc:creator>
		<pubDate>Wed, 18 Mar 2009 12:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.gibberishcode.net/?p=23#comment-6713</guid>
		<description>Although it does not appear as a dependency anywhere, to successfully build the mysql gem on Centos-5.3 x86_64 one requires that zlib-devel.x86_64 be installed as well.</description>
		<content:encoded><![CDATA[<p>Although it does not appear as a dependency anywhere, to successfully build the mysql gem on Centos-5.3 x86_64 one requires that zlib-devel.x86_64 be installed as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/comment-page-1#comment-6308</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 07 Feb 2009 16:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.gibberishcode.net/?p=23#comment-6308</guid>
		<description>@ Mathieu:  Excellent.  Glad you got it working.  You can drop the useless 32-bit packages or ensure 64-bit packages when installing by explicitly specifying the architecture when installing/uninstalling packages.  For example, instead of simply 

&lt;pre  name=&quot;code&quot; class=&quot;ruby:nocontrols&quot;&gt;
sudo yum install mysql mysql-devel mysql-server
&lt;/pre&gt;

You run this:

&lt;pre  name=&quot;code&quot; class=&quot;ruby:nocontrols&quot;&gt;
sudo yum install mysql.x86_64 mysql-dev.x86_64 mysql-server.x86_64
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@ Mathieu:  Excellent.  Glad you got it working.  You can drop the useless 32-bit packages or ensure 64-bit packages when installing by explicitly specifying the architecture when installing/uninstalling packages.  For example, instead of simply </p>
<pre name="code" class="ruby:nocontrols">
sudo yum install mysql mysql-devel mysql-server
</pre>
<p>You run this:</p>
<pre name="code" class="ruby:nocontrols">
sudo yum install mysql.x86_64 mysql-dev.x86_64 mysql-server.x86_64
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu Jobin</title>
		<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/comment-page-1#comment-6306</link>
		<dc:creator>Mathieu Jobin</dc:creator>
		<pubDate>Sat, 07 Feb 2009 16:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.gibberishcode.net/?p=23#comment-6306</guid>
		<description>ok, i just had to look at the mkmf.log file

gcc was missing ;)

and 

[root@centos52-64 ~]# gem install mysql -- --with-mysql-conf=/usr/lib64/mysql/mysql_config --with-mysql-lib=/usr/lib64/mysql/

is working, and all parameters were required.</description>
		<content:encoded><![CDATA[<p>ok, i just had to look at the mkmf.log file</p>
<p>gcc was missing <img src='http://ramblings.gibberishcode.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>and </p>
<p>[root@centos52-64 ~]# gem install mysql &#8212; &#8211;with-mysql-conf=/usr/lib64/mysql/mysql_config &#8211;with-mysql-lib=/usr/lib64/mysql/</p>
<p>is working, and all parameters were required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu Jobin</title>
		<link>http://ramblings.gibberishcode.net/archives/ruby-mysql-centos-5-and-64-bit/23/comment-page-1#comment-6305</link>
		<dc:creator>Mathieu Jobin</dc:creator>
		<pubDate>Sat, 07 Feb 2009 15:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://ramblings.gibberishcode.net/?p=23#comment-6305</guid>
		<description>Hi,

I run the exact same setup. 5.2, same kernel, 64bit. but it does not work.
same error

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql-2.7 for inspection.
  ruby extconf.rb install mysql -- --with-mysql-conf=/usr/lib64/mysql/mysql_config\nchecking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no


any idea what else I could try? 
I deleted the remaining stuff in gem dir and start over same thing.

I weird thing I&#039;m not happy with is duplicate rpm 32bit and 64bit
is it a must under centos or there is a way to clean up the useless 32 bit stuff?

thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I run the exact same setup. 5.2, same kernel, 64bit. but it does not work.<br />
same error</p>
<p>Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql-2.7 for inspection.<br />
  ruby extconf.rb install mysql &#8212; &#8211;with-mysql-conf=/usr/lib64/mysql/mysql_config\nchecking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lm&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lz&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lsocket&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lnsl&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no</p>
<p>any idea what else I could try?<br />
I deleted the remaining stuff in gem dir and start over same thing.</p>
<p>I weird thing I&#8217;m not happy with is duplicate rpm 32bit and 64bit<br />
is it a must under centos or there is a way to clean up the useless 32 bit stuff?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
