<?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>LinuxMonk &#187; Ruby on Rails</title>
	<atom:link href="http://www.linuxmonk.org/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmonk.org</link>
	<description>A Journey Towards Infinity...</description>
	<lastBuildDate>Fri, 16 Jul 2010 19:32:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing Ruby on Rails in Ubuntu 8.04(Hardy)</title>
		<link>http://www.linuxmonk.org/2009/01/31/installing-ruby-on-rails-in-ubuntu-804hardy/</link>
		<comments>http://www.linuxmonk.org/2009/01/31/installing-ruby-on-rails-in-ubuntu-804hardy/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 14:41:13 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=215</guid>
		<description><![CDATA[Ruby on Rails is a web application programmers based on Ruby. It helps the programmers creat best web applications easily. Here are the steps to set up Ruby on Rails in your Ubuntu or Debian based systems Step 1: First step is to install some inportant packages that are recured, sudo apt-get -y install build-essential [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p style="margin-bottom: 0cm;">Ruby on Rails is a web application programmers based on Ruby. It helps the programmers creat best web applications easily.</p>
<p style="margin-bottom: 0cm;">Here are the steps to set up Ruby on Rails in your Ubuntu or Debian based systems</p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;"><strong>Step 1:</strong> First step is to install some inportant packages that are recured,</p>
<blockquote>
<p style="margin-bottom: 0cm;">sudo apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev</p>
</blockquote>
<p style="margin-bottom: 0cm;"><strong>Step 2:</strong> Install ruby</p>
<blockquote>
<p style="margin-bottom: 0cm;"><code>RUBY="ruby-1.8.6-p111" </code><code>//Current stable version</code></p>
<p style="margin-bottom: 0cm;"><code>wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/$RUBY.tar.gz</code></p>
<p style="margin-bottom: 0cm;"><code>tar xzf $RUBY.tar.gz</code> <code>cd $RUBY</code></p>
<p style="margin-bottom: 0cm;"><code>./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr –with-zlib-dir=/usr</code></p>
<p style="margin-bottom: 0cm;"><code>make clean</code></p>
<p style="margin-bottom: 0cm;"><code>make</code></p>
<p style="margin-bottom: 0cm;"><code>make install</code></p>
<p style="margin-bottom: 0cm;"><code>make install-doc</code></p>
</blockquote>
<p style="margin-bottom: 0cm;">make clean will clear any make files in that folder, previosly created that was configured without right options  Checking whether ruby is installed properly</p>
<blockquote>
<p style="margin-bottom: 0cm;"><code>ruby -ropenssl -rzlib -rreadline -e "puts :success" </code></p>
</blockquote>
<p style="margin-bottom: 0cm;"><strong> Step 3:</strong> Install Gem</p>
<p style="margin-bottom: 0cm;">Gem is a installer similar to apt, for ruby and ruby related packages</p>
<pre><code>RUBYGEMS="rubygems-1.0.1" //Current stable version</code>
<code>wget http://rubyforge.org/frs/download.php/29548/$RUBYGEMS.tgz</code><code>
tar xzf $RUBYGEMS.tgz</code><code>
cd $RUBYGEMS</code><code>
/usr/local/bin/ruby setup.rb</code>
<code>	</code></pre>
<p style="margin-bottom: 0cm;"><strong>Step 4: </strong>Install Rails</p>
<blockquote>
<p style="margin-bottom: 0cm;"><code>gem install rails //This will install rails successfully.</code></p>
<p style="margin-bottom: 0cm;"><code>Or gem install &lt;paths to rails gem file&gt;</code></p>
</blockquote>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;"><strong>Main Errors during Installation:</strong></p>
<p style="margin-bottom: 0cm;"><strong>Error 1:</strong></p>
<p style="margin-bottom: 0cm;"><strong>/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require&#8217;: no such file to load &#8212; zlib (LoadError)</strong></p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;">using the following step for configuring ruby, that is before make, will remove this problem</p>
<pre><code>./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr –with-zlib-dir=/usr</code></pre>
<p style="margin-bottom: 0cm;">
<p><strong>Error 2:</strong></p>
<p style="margin-bottom: 0cm;"><strong>no such file to load &#8212; mysql</strong></p>
<p style="margin-bottom: 0cm;"><strong>undefined symbol: rb_Digest_MD5_Init &#8211; /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so (LoadError)</strong></p>
<p style="margin-bottom: 0cm;">
<p style="margin-bottom: 0cm;">Installing the mysql dev package and mysql library for ruby will clear this error,</p>
<blockquote>
<p style="margin-bottom: 0cm;">sudo apt-get install libmysqlclient15-dev</p>
<p style="margin-bottom: 0cm;">sudo gem install mysql</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/01/31/installing-ruby-on-rails-in-ubuntu-804hardy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
