<?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>Daniele Demichelis &#187; Ruby</title>
	<atom:link href="http://www.danidemi.com/mainwww/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danidemi.com/mainwww</link>
	<description>There are 10 types of people in the world: Those who understand binary, and those who don&#039;t...</description>
	<lastBuildDate>Wed, 14 Apr 2010 08:14:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ruby on CentOS</title>
		<link>http://www.danidemi.com/mainwww/2010/03/ruby-on-centos/</link>
		<comments>http://www.danidemi.com/mainwww/2010/03/ruby-on-centos/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 14:07:36 +0000</pubDate>
		<dc:creator>danidemi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[operation]]></category>

		<guid isPermaLink="false">http://www.danidemi.com/mainwww/?p=121</guid>
		<description><![CDATA[Install a recent Ruby version in CentOS via Yum is almost impossible, since the packages are a little outdated. Maybe it is worth to give Enterprise Ruby a [...]]]></description>
			<content:encoded><![CDATA[<p>In these days I&#8217;m trying to install Ruby on Rails on our CentOS production server. What I really don&#8217;t like very much about CentOS are its pretty outdated packages installable via yum. This time proved to be the same&#8230; it&#8217;s seems that the Ruby available on CentOS via yum is a version released during 2006.<br />
In the first place I tried to compile Ruby from sources, but this proved a little too much messy for me. In the end I stumbled upon Ruby Enterprise Edition and I gave it a try.<br />
What I liked most about it was that it worked perfectly just out of the box and that all Ruby files go inside a single directory, so it&#8217;s pretty easy to move from a version to another even if not using yum.<br />
This is a brief tutorial about how to install Ruby Enterprise Edition on CentOS.</p>
<h1>Get rid of any Ruby previously installed</h1>
<p>First of all let&#8217;s remove any Ruby installation already present on our CentOS.<br />
We can ask Yum to give us a list of Ruby related packages currently installed.</p>
<div class="geshi no sh">
<ol>
<li class="li1">
<div class="de1">yum list | grep installed | grep ruby</div>
</li>
</ol>
</div>
<p>My server answered that way, but obviously yours can show other answers.</p>
<div class="geshi no shell">
<ol>
<li class="li1">
<div class="de1">ruby.i386 1.8.5-5.el5_3.7 installed
</div>
</li>
<li class="li1">
<div class="de1">ruby-devel.i386 1.8.5-5.el5_3.7 installed
</div>
</li>
<li class="li1">
<div class="de1">ruby-libs.i386 1.8.5-5.el5_3.7 installed
</div>
</li>
<li class="li1">
<div class="de1">ruby-mode.i386 1.8.5-5.el5_3.7 installed</div>
</li>
</ol>
</div>
<p>Time to gently ask to Yum to remove all those Ruby packages.</p>
<div class="geshi no shell">
<ol>
<li class="li1">
<div class="de1">yum erase ruby
</div>
</li>
<li class="li1">
<div class="de1">yum erase ruby-devel
</div>
</li>
<li class="li1">
<div class="de1">yum erase ruby-libs
</div>
</li>
<li class="li1">
<div class="de1">yum erase ruby-mode</div>
</li>
</ol>
</div>
<p>We can now start with the Enterprise Ruby installation.</p>
<h1>Download and install Enterprise Ruby</h1>
<p>There is really nothing deeply interesting here. Just download the sources, unpack them, compile them and set some useful links.</p>
<div class="geshi no shell">
<ol>
<li class="li1">
<div class="de1">mkdir -p ~/Temp/Sources
</div>
</li>
<li class="li1">
<div class="de1">cd ~/Temp/Sources
</div>
</li>
<li class="li1">
<div class="de1">wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz
</div>
</li>
<li class="li1">
<div class="de1">tar xzvf ruby-enterprise-1.8.7-2010.01.tar.gz
</div>
</li>
<li class="li1">
<div class="de1">./ruby-enterprise-1.8.7-2010.01/installer</div>
</li>
</ol>
</div>
<p>At the end we should have a working Ruby installation.<br />
Let&#8217;s create some useful link.</p>
<div class="geshi no shell">
<ol>
<li class="li1">
<div class="de1">ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/rake /usr/bin/rake
</div>
</li>
<li class="li1">
<div class="de1">ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/gem /usr/bin/gem
</div>
</li>
<li class="li1">
<div class="de1">ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/rails /usr/bin/rails
</div>
</li>
<li class="li1">
<div class="de1">ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /usr/bin/ruby
</div>
</li>
<li class="li1">
<div class="de1">ln -s /opt/ruby-enterprise-1.8.7-2010.01/bin/irb /usr/bin/irb</div>
</li>
</ol>
</div>
<h1>Worth reading</h1>
<p><a href="http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/">Cristian Livadaru&#8217;s blog post about the topic.</a><br />
<a href="http://articles.slicehost.com/2009/4/7/centos-ruby-on-rails">Install the available Ruby via Yum</a><br />
<a href="http://www.rubyenterpriseedition.com/download.html">Enterprise Ruby download page</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danidemi.com/mainwww/2010/03/ruby-on-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails ans SQLite3 on Ubuntu</title>
		<link>http://www.danidemi.com/mainwww/2009/12/rails-ans-sqlite3-on-ubuntu/</link>
		<comments>http://www.danidemi.com/mainwww/2009/12/rails-ans-sqlite3-on-ubuntu/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 10:06:37 +0000</pubDate>
		<dc:creator>danidemi</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://www.danidemi.com/mainwww/?p=90</guid>
		<description><![CDATA[<p>To configure a Rails application in order to use SQLite3 please follow the following steps:</p>
sudo apt-get install  sqlite3 swig libsqlite3-ruby libsqlite3-dev
 sudo gem install sqlite3-ruby
<p>Then create a Rails application as usual and update the environment.rb file in the following way</p>
Rails::Initializer.run do &#124;config&#124;
...
config.gem 'sqlite3-ruby', :lib =&#62; "sqlite3"
...
end
]]></description>
			<content:encoded><![CDATA[<p>To configure a Rails application in order to use SQLite3 please follow the following steps:</p>
<pre>sudo apt-get install  sqlite3 swig libsqlite3-ruby libsqlite3-dev
 sudo gem install sqlite3-ruby</pre>
<p>Then create a Rails application as usual and update the environment.rb file in the following way</p>
<pre>Rails::Initializer.run do |config|</pre>
<pre>...</pre>
<pre>config.gem 'sqlite3-ruby', :lib =&gt; "sqlite3"</pre>
<pre>...</pre>
<pre>end</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.danidemi.com/mainwww/2009/12/rails-ans-sqlite3-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
