<?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>UahRai! &#187; ubuntu</title>
	<atom:link href="http://www.gustavocaixeta.com/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gustavocaixeta.com</link>
	<description>rake -D blog</description>
	<lastBuildDate>Sun, 22 Nov 2009 02:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problems to send files through Blueman Bluetoth in Ubuntu 9.10 Karmic</title>
		<link>http://www.gustavocaixeta.com/2009/11/problems-to-send-files-through-blueman-bluetoth-in-ubuntu-9-10-karmic/</link>
		<comments>http://www.gustavocaixeta.com/2009/11/problems-to-send-files-through-blueman-bluetoth-in-ubuntu-9-10-karmic/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 02:02:30 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[bluetoth]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[informatica]]></category>
		<category><![CDATA[send]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=252</guid>
		<description><![CDATA[I was having problems to send files through Blueman Bluetoth in (x) Ubuntu Karmic Koala 9.10.
To solve this problem, I only add the ppa repository of blueman, geting some latest version of it.
In karmic, the process of including this type of repository, now is easier. Only this steps to include and update:

sudo add-apt-repository ppa:blueman/ppa
sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>I was having problems to send files through Blueman Bluetoth in (x) Ubuntu Karmic Koala 9.10.</p>
<p>To solve this problem, I only add the ppa repository of blueman, geting some latest version of it.</p>
<p>In karmic, the process of including this type of repository, now is easier. Only this steps to include and update:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:blueman<span style="color: #000000; font-weight: bold;">/</span>ppa
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<p>My bluetoth device is recognized in &#8220;lsusb&#8221; as:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lsusb
Bus 006 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle <span style="color: #7a0874; font-weight: bold;">&#40;</span>HCI mode<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Yes, is the cheaper usb bluetoth dongle. <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2009/11/problems-to-send-files-through-blueman-bluetoth-in-ubuntu-9-10-karmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revert a simple package upgrade in Ubuntu</title>
		<link>http://www.gustavocaixeta.com/2009/09/revert-a-simple-package-upgrade-in-ubuntu/</link>
		<comments>http://www.gustavocaixeta.com/2009/09/revert-a-simple-package-upgrade-in-ubuntu/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 11:41:49 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=225</guid>
		<description><![CDATA[This is a simple tip.
Today I upgrade my Gwibber. I am using the daily build repository. Yes, I know that I can get a unstable release hehe, but it&#8217;s interesting.
I used the upgrade command, after the update

sudo apt-get update
sudo apt-get upgrade -V

And it proposes to upgrade Gwibber

gwibber &#40;2.0.0~bzr433-0ubuntu2~daily1~jaunty =&#62; 2.0.0~bzr438-0ubuntu2~daily1~jaunty&#41;


But the &#8220;438&#8243; build didn&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple tip.</p>
<p>Today I upgrade my <a href="https://launchpad.net/gwibber">Gwibber</a>. I am using the <a href="https://launchpad.net/~gwibber-daily/+archive/ppa">daily build repository</a>. Yes, I know that I can get a unstable release hehe, but it&#8217;s interesting.</p>
<p>I used the upgrade command, after the update</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade <span style="color: #660033;">-V</span></pre></div></div>

<p>And it proposes to upgrade Gwibber</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gwibber <span style="color: #7a0874; font-weight: bold;">&#40;</span>2.0.0~bzr433-0ubuntu2~daily1~jaunty =<span style="color: #000000; font-weight: bold;">&gt;</span> 2.0.0~bzr438-0ubuntu2~daily1~jaunty<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><span id="more-225"></span></p>
<p>But the &#8220;438&#8243; build didn&#8217;t work fine with me, and I intend to downgrade back to &#8220;433&#8243;.<br />
So, I did the following steps.</p>
<p>1) Search for Gwibber packages at apt cache repository in my machine.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>cache<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>archives
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">*</span>gwi<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>And it returns the list of available packages.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gwibber_0.8-0ubuntu5_all.deb
gwibber_0.9.2~bzr263-0ubuntu1~jaunty_all.deb
gwibber_2.0.0~bzr433-0ubuntu2~daily1~jaunty_all.deb
gwibber_2.0.0~bzr438-0ubuntu2~daily1~jaunty_all.deb</pre></div></div>

<p>2)<br />
So, I only installed again the previous version of it with &#8220;dpkg&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> gwibber_2.0.0~bzr433-0ubuntu2~daily1~jaunty_all.deb</pre></div></div>

<p>It works fine with me <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2009/09/revert-a-simple-package-upgrade-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilando Ruby na Mão ;)</title>
		<link>http://www.gustavocaixeta.com/2009/03/compilando-ruby-na-mao/</link>
		<comments>http://www.gustavocaixeta.com/2009/03/compilando-ruby-na-mao/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 13:52:54 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[compilacao]]></category>
		<category><![CDATA[intrepid ibex]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=110</guid>
		<description><![CDATA[Esse post é um tutorial de como compilar o Ruby 1.8.6 ou 1.8.7 no Ubuntu.
Minha motivação para esse post foi, um projeto meu antigo que apresentou uns problemas com o Ruby 1.8.7. Alem de já ter ouvido que o Ruby Compilado tem uma performance muito melhor.
Inicialmente, removemos todos os pacotes do gerenciador padrão do ubuntu.

sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Esse post é um tutorial de como compilar o Ruby 1.8.6 ou 1.8.7 no Ubuntu.<br />
Minha motivação para esse post foi, um projeto meu antigo que apresentou uns problemas com o Ruby 1.8.7. Alem de já ter ouvido que o Ruby Compilado tem uma performance muito melhor.</p>
<p>Inicialmente, removemos todos os pacotes do gerenciador padrão do ubuntu.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> purge ruby ruby1.8 rdoc ri irb libopenssl-ruby ruby-dev libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 ruby1.8-dev</pre></div></div>

<p><span id="more-110"></span><br />
Tambem é importante ter os compiladores básicos.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential libssl-dev libreadline5-dev zlib1g-dev</pre></div></div>

<p>Vamos instalar o checkinstall, para que possamos compilar e gerar um .deb e ter um maior controle sobre o que é instalado</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> checkinstall</pre></div></div>

<p>Agora vamos puxar o código fonte do Ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.ruby-lang.org<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>ruby-1.8.6-p287.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf ruby-1.8.6-p287.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> ruby-1.8.6-p287</pre></div></div>

<p>Agora vamos seguir para o processo de compilação</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #660033;">--with-openssl-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-readline-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr <span style="color: #660033;">--with-zlib-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> checkinstall</pre></div></div>

<p>Para testar se tudo ficou ok:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #660033;">-ropenssl</span> <span style="color: #660033;">-rzlib</span> <span style="color: #660033;">-rreadline</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;puts :success&quot;</span></pre></div></div>

<p>Criando os links simbólicos</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div>

<p>Um problema que eu tive, foi com a instalação anterior do RubyGem, que apresentava o seguinte erro:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> gem <span style="color: #660033;">-v</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem:<span style="color: #000000;">8</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require<span style="color: #ff0000;">': no such file to load -- rubygems (LoadError)
	from /usr/bin/gem:8</span></pre></div></div>

<p>Isso aconteceu, pois a instalação do Ruby e dos Gems mudaram de local.<br />
Para resolver, re-instalamos o gem na nova pasta do Ruby.</p>
<p>A pasta anterior do Ruby era:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> ruby
ruby: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>man<span style="color: #000000; font-weight: bold;">/</span>man1<span style="color: #000000; font-weight: bold;">/</span>ruby.1.gz</pre></div></div>

<p>E agora mudou para:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> ruby
ruby: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby</pre></div></div>

<p>Isso aconteceu, pois mudamos o diretório de instalação de &#8220;/usr/&#8221; para &#8220;/usr/local/&#8221; no momento do configure (configure &#8211;prefix=/usr/local)</p>
<p>Para re-instalar o gem:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
&nbsp;
gem1.8 <span style="color: #660033;">-v</span>
1.3.1</pre></div></div>

<p>O gem tambem mudou do lugar:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> gem
gem: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8</pre></div></div>

<p>Para:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> gem
gem: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<p>Com a mudança de diretório do gem, perdemos todas as gems que haviam instaladas.<br />
As gems anteriores, podem ser listadas com o seguinte comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Aprendi boa parte disso nos seguintes sites:</p>
<ul>
<li><a href="http://blog.fiveruns.com/2008/3/3/compiling-ruby-rubygems-and-rails-on-ubuntu">Compiling Ruby, RubyGems and Rails on Ubuntu</a></li>
<li><a href="http://blog.ramonsoares.com/2008/01/02/ubuntu-ruby-rails-sqlite-mongrel.html">Ubuntu + Ruby + Rails + Sqlite + Mongrel</a></li>
</ul>
<p>Ps. Esse post é valido apenas para o Ruby 1.8.6 e 1.8.7</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2009/03/compilando-ruby-na-mao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalando o Ruby 1.8.6 no Intrepid Ibex via Downgrade</title>
		<link>http://www.gustavocaixeta.com/2009/03/instalando-o-ruby-186-no-intrepid-ibex-via-downgrade/</link>
		<comments>http://www.gustavocaixeta.com/2009/03/instalando-o-ruby-186-no-intrepid-ibex-via-downgrade/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 01:30:35 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[compilacao]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=99</guid>
		<description><![CDATA[Assim que criei meu tutorial de instalação do Ruby e Rails no Ubuntu Intrepid Ibex (8.10), o Guilherme fez um comentário sobre os problemas que haviam do Ruby 1.8.7 no Ubuntu 8.10 em relação a versões antigas do Rails (anteriores ao 2.1).
Mas parece que mudaram a página do Rails   falando que o 1.8.7 [...]]]></description>
			<content:encoded><![CDATA[<p>Assim que criei meu tutorial de instalação do Ruby e Rails no Ubuntu Intrepid Ibex (8.10), o <a href="http://www.tatri.com.br/">Guilherme</a> fez<a href="http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/comment-page-1/#comment-17"> um comentário</a> sobre <a href="http://www.rubyonrails.org/down">os problemas que haviam do Ruby 1.8.7</a> no Ubuntu 8.10 em relação a versões antigas do Rails (anteriores ao 2.1).</p>
<p>Mas parece que mudaram a página do Rails <img src='http://www.gustavocaixeta.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  falando que o 1.8.7 já funciona perfeitamente ehehe.<br />
<span id="more-99"></span><br />
Um exemplo clássico disso, era uns problemas com meu primeiro projeto em Rails (O lamina foi feito no Rails 1.2.6).</p>
<p>Basicamente o procedimento é o seguinte:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list_backup</pre></div></div>

<p>Depois iremos criar o arquivo /etc/apt/preferences</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>preferences
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>preferences</pre></div></div>

<p>E insira o seguinte conteudo nele:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Package: ruby
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: rdoc1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: ri1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libgtk2-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libdbd-sqlite3-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libopenssl-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libsqlite3-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: ruby1.8-dev
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libdbi-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libatk1-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libpango1-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libatk1-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libgdk-pixbuf2-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libglib2-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libcairo-ruby1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: irb1.8
Pin: release a=hardy
Pin-Priority: 900
&nbsp;
Package: libreadline-ruby1.8
Pin: release a=hardy
Pin-Priority: 900</pre></div></div>

<p>Agore iremos criar uma cópia das fontes, porem substituindo &#8220;intrepid&#8221; por &#8220;hardy&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted
&nbsp;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
&nbsp;
deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe
deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates universe
&nbsp;
deb http://archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse
&nbsp;
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb http://archive.ubuntu.com/ubuntu/ hardy-security universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security universe
deb http://archive.ubuntu.com/ubuntu/ hardy-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security multiverse</pre></div></div>

<p>Depois de Inserir uma cópia das fontes do hardy no seu arquivo sources.list</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>Para pegar a lista de pacotes disponivel para o hardy.</p>
<p>Depois disso, iremos remover o Ruby.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove ruby ruby1.8 rdoc ri irb libopenssl-ruby ruby-dev libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 ruby1.8-dev</pre></div></div>

<p>E depois re-instalar ele</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby ruby1.8 rdoc ri irb libopenssl-ruby ruby-dev <span style="color: #660033;">-V</span></pre></div></div>

<p>Agora o resultado da versão do Ruby deve mudar</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gustavo<span style="color: #000000; font-weight: bold;">@</span>gustavo-mv:~$ ruby <span style="color: #660033;">-v</span>
ruby 1.8.7 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2008</span>-08-<span style="color: #000000;">11</span> patchlevel <span style="color: #000000;">72</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i486-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
gustavo<span style="color: #000000; font-weight: bold;">@</span>gustavo-mv:~$ ruby <span style="color: #660033;">-v</span>
ruby 1.8.6 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2007</span>-09-<span style="color: #000000;">24</span> patchlevel <span style="color: #000000;">111</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i486-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Acho que isso já deixa tudo 100%. Tenho só umas duvidas em relação aos Ruby Gems já instalados.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2009/03/instalando-o-ruby-186-no-intrepid-ibex-via-downgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instalando Ruby e Rails no Ubuntu 8.10 &#8211; Intrepid Ibex</title>
		<link>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/</link>
		<comments>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 00:11:02 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=36</guid>
		<description><![CDATA[Está com pressa? Vá direto para o resumo!
Para trabalhar com Ruby e Rails é necessário instalar alguns pacotes.
Primeiro:

sudo apt-get install ruby rdoc ri irb

Descrição dos pacotes instalados via man:
ruby &#8211; Interpreted object-oriented scripting language
rdoc1.8 &#8211; Generate documentation from Ruby script files
ri1.8 &#8211; Ruby Information at your fingertips
irb1.8 &#8211; interactive ruby

ruby -v
ruby 1.8.7 &#40;2008-08-11 patchlevel 72&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>Está com pressa? <a href="#resumo">Vá direto para o resumo</a>!</p>
<p>Para trabalhar com Ruby e Rails é necessário instalar alguns pacotes.</p>
<p>Primeiro:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby rdoc ri irb</pre></div></div>

<p>Descrição dos pacotes instalados via man:<br />
ruby &#8211; Interpreted object-oriented scripting language<br />
rdoc1.8 &#8211; Generate documentation from Ruby script files<br />
ri1.8 &#8211; Ruby Information at your fingertips<br />
irb1.8 &#8211; interactive ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby <span style="color: #660033;">-v</span>
ruby 1.8.7 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2008</span>-08-<span style="color: #000000;">11</span> patchlevel <span style="color: #000000;">72</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>i486-linux<span style="color: #7a0874; font-weight: bold;">&#93;</span>
irb <span style="color: #660033;">-v</span>
irb 0.9.5<span style="color: #7a0874; font-weight: bold;">&#40;</span>05<span style="color: #000000; font-weight: bold;">/</span>04<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">13</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Agora vou até o site do <a href="http://rubyforge.org/projects/rubygems/">RubyGem no RubyForge</a> <a href="http://rubyforge.org/frs/?group_id=126">baixar a ultima versão</a> do mesmo.<br />
Instalar o pacote RubyGem do Ubuntu nem sempre é uma boa idéia&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
&nbsp;
gem1.8 <span style="color: #660033;">-v</span>
1.3.1</pre></div></div>

<p>Vamos criar um link simbólico para o comando gem</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<p>Este link simbólico é para que quando você digitar o comando &#8220;gem&#8221; ele chame o &#8220;gem1.8&#8243;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> gem
gem - <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8
gem1.8</pre></div></div>

<p>Beleza, ruby instalado, gem instalado, agora vamos tentar instalar o Rails.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails
&nbsp;
rails <span style="color: #660033;">-v</span>
Rails 2.1.2</pre></div></div>

<p>Agora vamos testar se o Rails está funcionando corretamente (se não falta alguma coisa a ser instalada).<br />
Vamos criar um projeto novo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rails Teste
<span style="color: #7a0874; font-weight: bold;">cd</span> Teste<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
script<span style="color: #000000; font-weight: bold;">/</span>generate scaffold User nome:string idade:integer</pre></div></div>

<p><span style="color: #ff0000;">Ops</span>, o primeiro problema, esqueci de instalar o ssl do ruby.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>rails-2.1.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>initializer.rb:<span style="color: #000000;">229</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require_frameworks<span style="color: #ff0000;">': no such file to load -- openssl (RuntimeError)
	from /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:118:in `process'</span>
	from <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>rails-2.1.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>initializer.rb:<span style="color: #000000;">97</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>send<span style="color: #ff0000;">'
	from /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:97:in `run'</span>
	from <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>gcaixeta<span style="color: #000000; font-weight: bold;">/</span>Projetos<span style="color: #000000; font-weight: bold;">/</span>Teste<span style="color: #000000; font-weight: bold;">/</span>config<span style="color: #000000; font-weight: bold;">/</span>environment.rb:<span style="color: #000000;">13</span>
	from <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>custom_require.rb:<span style="color: #000000;">31</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>gem_original_require<span style="color: #ff0000;">'
	from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'</span>
	from <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>rails-2.1.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>commands<span style="color: #000000; font-weight: bold;">/</span>generate.rb:<span style="color: #000000;">1</span>
	from <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>site_ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>custom_require.rb:<span style="color: #000000;">31</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>gem_original_require<span style="color: #ff0000;">'
	from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'</span>
	from script<span style="color: #000000; font-weight: bold;">/</span>generate:<span style="color: #000000;">3</span></pre></div></div>

<p>Vamos instalalo via apt-get</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libopenssl-ruby</pre></div></div>

<p>Novamente vamos tentar gerar o scaffold de exemplo.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">script<span style="color: #000000; font-weight: bold;">/</span>generate scaffold User nome:string idade:integer</pre></div></div>

<p>Agora vamos tentar rodar o migrate.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake db:migrate</pre></div></div>

<p><span style="color: #ff0000;">ops</span>, esqueci de instalar o sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake aborted<span style="color: #000000; font-weight: bold;">!</span>
no such <span style="color: #c20cb9; font-weight: bold;">file</span> to load <span style="color: #660033;">--</span> sqlite3</pre></div></div>

<p>Vamos instalar primeiro o programa sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3</pre></div></div>

<p>Depois o gem</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
	ERROR: Failed to build gem native extension.</pre></div></div>

<p><span style="color: #ff0000;">Ops</span>, deu problema na instalação da gem. Ela precisa compilar extensões nativas em C, então tenho que ter instalado os compiladores básicos.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential</pre></div></div>

<p>novamente vamos tentar instalar o gem</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ERROR:  Error installing sqlite3-ruby:
	ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 extconf.rb <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby
extconf.rb:<span style="color: #000000;">1</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require<span style="color: #ff0000;">': no such file to load -- mkmf (LoadError)
	from extconf.rb:1</span></pre></div></div>

<p><span style="color: #ff0000;">ops</span>, faltou instalar o pacote dev do ruby</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby-dev</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
	ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby1.8 extconf.rb <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby
checking <span style="color: #000000; font-weight: bold;">for</span> fdatasync<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lrt... <span style="color: #c20cb9; font-weight: bold;">yes</span>
checking <span style="color: #000000; font-weight: bold;">for</span> sqlite3.h... no</pre></div></div>

<p><span style="color: #ff0000;">ops</span>, faltou instalar o pacote de desenvolvimento do sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libsqlite3-dev</pre></div></div>

<p>Novamente. vamos tentar instalar o gem do sqlite3</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sqlite3-ruby</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.4
<span style="color: #000000;">1</span> gem installed
Installing ri documentation <span style="color: #000000; font-weight: bold;">for</span> sqlite3-ruby-1.2.4...
Installing RDoc documentation <span style="color: #000000; font-weight: bold;">for</span> sqlite3-ruby-1.2.4...</pre></div></div>

<p><span style="color: #008000;">Finalmente!</span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake db:migrate
script<span style="color: #000000; font-weight: bold;">/</span>server</pre></div></div>

<h2><a name="resumo">Resumo</a></h2>
<h3>Instalando o Básico</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby rdoc ri irb libopenssl-ruby sqlite3 build-essential ruby-dev libsqlite3-dev</pre></div></div>

<h3>Instalando o Ruby Gem</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rubyforge.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">45905</span><span style="color: #000000; font-weight: bold;">/</span>rubygems-1.3.1.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xvzf rubygems-1.3.1.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.3.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem1.8  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem</pre></div></div>

<h3>Instalando as Gems</h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails sqlite3-ruby</pre></div></div>

<h2>Instalando o mongrel</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel</pre></div></div>

<h2>Instalando o suporte mysql</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libmysqlclient15-dev
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql</pre></div></div>

<p>Update1:<br />
Testei o tutorial da versão Hardy(8.04), a unica diferença é que não há um pacote chamado &#8220;ruby-dev&#8221;, ao invés deste, utilize o &#8220;ruby1.8-dev&#8221;</p>
<p>Update2:</p>
<p>Para testar tudo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rails Teste
&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> Teste<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
script<span style="color: #000000; font-weight: bold;">/</span>generate scaffold User nome:string idade:integer
&nbsp;
rake db:migrate
&nbsp;
script<span style="color: #000000; font-weight: bold;">/</span>server
&nbsp;
http:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">3000</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">users</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/11/instalando-ruby-e-rails-no-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Vostro 1510 no Ubuntu 8.10 &#8211; Intrepid Ibex</title>
		<link>http://www.gustavocaixeta.com/2008/11/vostro-1510-no-ubuntu-810-intrepid-ibex/</link>
		<comments>http://www.gustavocaixeta.com/2008/11/vostro-1510-no-ubuntu-810-intrepid-ibex/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 22:54:11 +0000</pubDate>
		<dc:creator>Gustavo Caixeta</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[8.10]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[instalacao]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://www.gustavocaixeta.com/?p=30</guid>
		<description><![CDATA[Após a instalação, praticamente tudo estava Ok.
- Vídeo Intel x3100 (1400&#215;900)
- Wireless Intel 4965AGN
- Som Intel  82801H (até teclas multimídia estavam funcionando, só não testei mic)
- Teclas de Brilho
Primeiro passo:
Baixar a lista de pacotes atualizada

1
sudo apt-get update

Atualizar o sistema

1
sudo apt-get upgrade

Instalar sensores para medir a temperatura do processador

1
sudo apt-get install lm-sensors

É necessário rodar o detector [...]]]></description>
			<content:encoded><![CDATA[<p>Após a instalação, praticamente tudo estava Ok.</p>
<p>- Vídeo Intel x3100 (1400&#215;900)</p>
<p>- Wireless Intel 4965AGN</p>
<p>- Som Intel  82801H (até teclas multimídia estavam funcionando, só não testei mic)</p>
<p>- Teclas de Brilho</p>
<p>Primeiro passo:</p>
<p>Baixar a lista de pacotes atualizada</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></td></tr></table></div>

<p>Atualizar o sistema</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></td></tr></table></div>

<p>Instalar sensores para medir a temperatura do processador</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> lm-sensors</pre></td></tr></table></div>

<p>É necessário rodar o detector de sensores, para verificar quais sensores sua máquina possui. Basicamente a instalação é &#8220;Yes&#8221;, &#8220;Yes&#8221; e na ultima pergunta, ele pergunta se deseja inserir o &#8220;coretemp&#8221; no /etc/modules</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> sensors-detect</pre></td></tr></table></div>

<p>Depois de detectar os sensores e reiniciar a primeira vez, o comando sensors deve retornar a temperatura do CPU</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">sensors</pre></td></tr></table></div>

<p>No xubuntu (xfce), eu instalo um programa para adicionar ao painel para acompanhar a temperatura.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> xfce4-sensors-plugin</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.gustavocaixeta.com/2008/11/vostro-1510-no-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
