<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MrBrown blob &#187; Ruby</title>
	<atom:link href="http://charles.lescampeurs.org/category/ruby/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Thu, 02 Feb 2012 14:34:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Install DataMapper MySQL adapter on Mac OS X (10.6.6)</title>
		<link>http://charles.lescampeurs.org/2011/03/28/install-datamapper-mysql-adapter-on-mac-os-x-10-6-6?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-datamapper-mysql-adapter-on-mac-os-x-10-6-6</link>
		<comments>http://charles.lescampeurs.org/2011/03/28/install-datamapper-mysql-adapter-on-mac-os-x-10-6-6#comments</comments>
		<pubDate>Mon, 28 Mar 2011 20:13:08 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gem]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=427</guid>
		<description><![CDATA[I&#8217;ve just installed MySQL 5 from mysql-5.5.9-osx10.6-x86_64.dmg package, see MySQL download website or mirrors. This package installs MySQL in /usr/local/mysql (symlink to mysql-5.5.9-osx10.6-x86_64). When I wanted to install DataMapper MySQL driver, I ran into the following error: $ sudo gem install dm-mysql-adapter --no-rdoc --no-ri Fetching: data_objects-0.10.3.gem (100%) Fetching: do_mysql-0.10.3.gem (100%) Building native extensions.  This could take [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just installed MySQL 5 from <em>mysql-5.5.9-osx10.6-x86_64.dmg</em> package, see MySQL download website or mirrors.<br />
This package installs MySQL in <em>/usr/local/mysql</em> (symlink to <em>mysql-5.5.9-osx10.6-x86_64</em>).<br />
When I wanted to install DataMapper MySQL driver, I ran into the following error:</p>
<pre>$ sudo gem install dm-mysql-adapter --no-rdoc --no-ri
Fetching: data_objects-0.10.3.gem (100%)
Fetching: do_mysql-0.10.3.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing dm-mysql-adapter:
<span style="white-space: pre;">	</span>ERROR: Failed to build gem native extension.
/opt/ruby-1.9.1/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... 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.
[...]</pre>
<p>This means while compiling the extension, compiler can&#8217;t find mysql librairies. It&#8217;s because they haven&#8217;t been installed in standard include folders. They actually are in <em>/usr/local/mysql</em>.<br />
To indicate to the compilation process to check this folder you need to add the following parameter to the command line:</p>
<pre>$ sudo gem install dm-mysql-adapter --no-rdoc --no-ri -- --with-mysql-dir=/usr/local/mysql/

Building native extensions.  This could take a while...
Fetching: dm-do-adapter-1.0.2.gem (100%)
Fetching: dm-mysql-adapter-1.0.2.gem (100%)
Successfully installed do_mysql-0.10.3
Successfully installed dm-do-adapter-1.0.2
Successfully installed dm-mysql-adapter-1.0.2
3 gems installed</pre>
<p>You&#8217;re done!</p>
 <img src="http://charles.lescampeurs.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=427" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2011/03/28/install-datamapper-mysql-adapter-on-mac-os-x-10-6-6/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install gem without documentation</title>
		<link>http://charles.lescampeurs.org/2008/11/21/install-gem-without-documentation?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-gem-without-documentation</link>
		<comments>http://charles.lescampeurs.org/2008/11/21/install-gem-without-documentation#comments</comments>
		<pubDate>Fri, 21 Nov 2008 14:18:16 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[gem]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=123</guid>
		<description><![CDATA[If you need to install your gems without extra documentation, use flags &#8211;no-rdoc and &#8211;no-ri Example: $ gem install --no-rdoc --no-ri rails]]></description>
			<content:encoded><![CDATA[<p>If you need to install your <a title="RubyGems documentation" href="http://docs.rubygems.org/" target="_blank">gems</a> without extra documentation, use flags <em>&#8211;no-rdoc</em> and <em>&#8211;no-ri</em></p>
<p>Example:</p>
<pre>$ gem install --no-rdoc --no-ri rails</pre>
 <img src="http://charles.lescampeurs.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=123" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2008/11/21/install-gem-without-documentation/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

