<?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>Leomangione Web Developer &#187; Rails</title>
	<atom:link href="http://www.leomangione.com.br/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leomangione.com.br</link>
	<description>CMS Especialist, PHP developer, Magento &#38; Drupal</description>
	<lastBuildDate>Tue, 25 May 2010 00:27:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>I finnaly installed mysql gem on Snow Leopard.</title>
		<link>http://www.leomangione.com.br/2009/09/15/i-finnaly-installed-mysql-gem-on-snow-leopard/</link>
		<comments>http://www.leomangione.com.br/2009/09/15/i-finnaly-installed-mysql-gem-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:13:51 +0000</pubDate>
		<dc:creator>Leonardo</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.leomangione.com.br/?p=122</guid>
		<description><![CDATA[Ahhh que raiva me dá quando a gente fica preso nas coisas erradas. Instalar o Ruby Rails e o Rake no snow Leopard não é nenhum problema. Basta instalar o Suite de Desenvolvedor (Xcode) que já vem no DVD do Snow Leopard dentro do diretorio (Optional Install) e depois atualizar as gems. É bom usar [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-127" title="snowleopard" src="http://www.leomangione.com.br/wp-content/uploads/2009/09/snowleopard.jpg" alt="snowleopard" width="160" height="167" /></p>
<p>Ahhh que raiva me dá quando a gente fica preso nas coisas erradas. Instalar o Ruby  Rails e o Rake no snow Leopard não é nenhum problema. Basta instalar o Suite de Desenvolvedor (Xcode) que já vem no DVD do Snow Leopard dentro do diretorio (Optional Install) e depois atualizar as gems.</p>
<p>É bom usar o comando para atualizar tudo de uma vez, isso vai garantir que você não esqueceu de atualizar alguma gem, e você não quer isso. </p>
<pre class="brush:bash">sudo gem update --system</pre>
<p>Agora para instalar o Mysql eu dei bobeira em instalar a versão 32-bit do mysql, ou seja, alem de subestimar meu iMac Intel Core 2 Duo (que é 64-bit) eu não tinha entendido que eu posso instalar o Mysql 64-bit em uma maquina de 32-bit. (Intel Core Duo)</p>
<p>
Depois de instalar o Mysql e o prefpane, voce agora deve instalar a gem mysql usando ARCHFLAGS.</p>
<pre class="brush:bash">sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</pre>
<p>Pronto, tudo agora deve estar funcionando, para testar use o comando a seguir para forçar a criação de uma aplciação rails usando o banco mysql.</p>
<pre class="brush:bash">rails testmysql -d mysql</pre>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=I+finnaly+installed+mysql+gem+on+Snow+Leopard.+http://tinyurl.com/3naxotc" title="Post to Twitter"><img class="nothumb" src="http://www.leomangione.com.br/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.leomangione.com.br/2009/09/15/i-finnaly-installed-mysql-gem-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

