<?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>Urlando Contro il Cielo &#187; ruby on rails</title>
	<atom:link href="http://www.buffus.it/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.buffus.it</link>
	<description>I’m the Computer Guy. Why don’t ask me a stupid question??</description>
	<lastBuildDate>Fri, 30 Sep 2011 19:31:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[ruby] problema con mysql 2.7 gem</title>
		<link>http://www.buffus.it/2008/10/ruby-problema-con-mysql-27-gem/</link>
		<comments>http://www.buffus.it/2008/10/ruby-problema-con-mysql-27-gem/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 07:18:38 +0000</pubDate>
		<dc:creator>Buffus the Navigator</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[sviluppo]]></category>

		<guid isPermaLink="false">http://www.buffus.it/?p=327</guid>
		<description><![CDATA[questa notte ho re-installato il mio ambiente di sviluppo ruby (on rails) sul mio nuovo portatile apple macbook pro (intel core 2 duo). essendo quest&#8217;ultimo un processore a 64 bit ho giustamente installato la versione a 64 bit di mysql. questo però non è piaciuto a ruby on rails.
come consigliato da rails stesso ho installato [...]]]></description>
			<content:encoded><![CDATA[<p>questa notte ho re-installato il mio ambiente di sviluppo ruby (on rails) sul mio nuovo portatile apple macbook pro (intel core 2 duo). essendo quest&#8217;ultimo un processore a 64 bit ho giustamente installato la versione a 64 bit di mysql. questo però non è piaciuto a ruby on rails.<br />
come consigliato da rails stesso ho installato il driver mysql tramite gem con il comando:</p>
<p><code><div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block"></a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.buffus.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.buffus.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_about(1)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.buffus.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">env</span> <span class="re2">ARCHFLAGS</span>=<span class="st0">&quot;-arch i386&quot;</span> gem <span class="kw2">install</span> mysql <span class="re5">--</span> <span class="re5">--with-mysql-config</span>=<span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>mysql<span class="sy0">/</span>bin<span class="sy0">/</span>mysql_config</pre></div></div></p>
<p>essendo la mia un&#8217;architettura intel questo sarebbe dovuto bastare. e in effetti tutto sembra corretto, ma al primo &#8220;rake db:migrate&#8221; ho ricevuto l&#8217;errore:</p>
<p><code>dyld: Symbol not found: _mysql_init<br />
Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.7/lib/mysql.bundle<br />
Expected in: dynamic lookup</code></p>
<p>cercando un po&#8217; su google ho trovato che l&#8217;architettura esatta da utilizzare per installare il driver è &#8220;x86_64&#8243;. quindi il comando per installare tramite gem il driver mysql per l&#8217;ambiente a 64 bit è:</p>
<p><code><div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block"></a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.buffus.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.buffus.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_about(2)" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.buffus.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">env</span> <span class="re2">ARCHFLAGS</span>=<span class="st0">&quot;-arch x86_64&quot;</span> gem <span class="kw2">install</span> mysql <span class="re5">--</span> <span class="re5">--with-mysql-config</span>=<span class="sy0">/</span>usr<span class="sy0">/</span>local<span class="sy0">/</span>mysql<span class="sy0">/</span>bin<span class="sy0">/</span>mysql_config</pre></div></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buffus.it/2008/10/ruby-problema-con-mysql-27-gem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

