<?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>Strange Symphonies &#187; Fedora 7</title>
	<atom:link href="http://blog.aizatto.com/tag/fedora-7/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.aizatto.com</link>
	<description>Don't worry, be happy</description>
	<lastBuildDate>Sun, 25 Jul 2010 07:59:00 +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>Setting up Ruby on Rails Database Connection using SQLite (version 2 and 3) on Fedora 7</title>
		<link>http://blog.aizatto.com/2007/06/10/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-fedora-7/</link>
		<comments>http://blog.aizatto.com/2007/06/10/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-fedora-7/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 14:25:20 +0000</pubDate>
		<dc:creator>aizatto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora 7]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://rails.aizatto.com/2007/06/10/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-fedora-7/</guid>
		<description><![CDATA[SQLite is good for development and testing, and depending on your needs production even. By default Typo uses SQLite for production. The greatest advantage is that it's light. (like duh), and very easy to deploy. Enter into the Terminal, and as root execute: If you see this, you want the ruby version, so select 1 [...]]]></description>
			<content:encoded><![CDATA[<p>SQLite is good for development and testing, and depending on your needs production even.  By default Typo uses SQLite for production.  The greatest advantage is that it's light.  (like duh), and very easy to deploy.</p>
<p class="block_important"><strong>Note:</strong> There are <strong>two versions of SQLite</strong>, version 2 and 3.  They produce databases which are <strong>incompatible with each other</strong>. </p>
<h3>Version 2</h3>

<p>Enter into the Terminal, and <strong>as root</strong> execute:<br />
<pre class="block_terminal"><br />
yum install gcc ruby-devel sqlite2-devel<br />
gem install sqlite-ruby<br />
</pre></p>
<p>If you see this, you want the <em>ruby</em> version, so <strong>select 1</strong> (enter it in).<br />
<pre class="block_terminal"><br />
Select which gem to install for your platform (i486-linux)<br />
 1. sqlite-ruby 2.2.3 (ruby)<br />
 2. sqlite-ruby 2.2.3 (mswin32)<br />
 3. sqlite-ruby 2.2.2 (ruby)<br />
 4. sqlite-ruby 2.2.2 (mswin32)<br />
 5. Skip this gem<br />
 6. Cancel installation<br />
&gt;<br />
</pre></p>
<p>Edit the file <code><img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/script.png" alt="File" title="File" /> RAILS_ROOT/config/database.yml</code>.  For now we are using the <img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/database.png" alt="Database" title="Database" /> <code>development</code> environment.   The environment you are deploying your database should look like so.</p>
<pre class="brush: plain;">
development:
  adapter: sqlite
  dbfile: db/development.sql
</pre>
<h3>Version 3</h3>

<p>Enter into the Terminal, and <strong>as root</strong> execute:<br />
<pre class="block_terminal"><br />
yum install gcc ruby-devel sqlite-devel<br />
gem install sqlite3-ruby<br />
</pre></p>
<p>If you see this, you want the <em>ruby</em> version, so <strong>select 2</strong> (enter it in).</p>
<pre class="block_terminal"><br />
Select which gem to install for your platform (i486-linux)<br />
 1. sqlite3-ruby 1.2.1 (mswin32)<br />
 2. sqlite3-ruby 1.2.1 (ruby)<br />
 3. sqlite3-ruby 1.2.0 (mswin32)<br />
 4. sqlite3-ruby 1.2.0 (ruby)<br />
 5. Skip this gem<br />
 6. Cancel installation<br />
&gt;<br />
</pre>
<p>Edit the file <img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/script.png" alt="File" title="File" /> <code>RAILS_ROOT/config/database.yml</code>.  For now we are using the <img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/database.png" alt="Database" title="Database" /> <code>development</code> environment.   The environment you are deploying your database should look like so.</p>
<pre class="brush: plain;">
development:
  adapter: sqlite3
  dbfile: db/development.sql
</pre>
<h3>Conclusion</h3>

<p>There you have it, your database is now set up!</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.aizatto.com/2007/05/02/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-ubuntu-feisty-fawn/" title="Setting up Ruby on Rails Database Connection using SQLite (version 2 and 3) on Ubuntu Feisty Fawn (May 2, 2007)">Setting up Ruby on Rails Database Connection using SQLite (version 2 and 3) on Ubuntu Feisty Fawn</a> (2)</li>
	<li><a href="http://blog.aizatto.com/2007/06/10/installing-ruby-on-rails-on-fedora-7/" title="Installing Ruby on Rails on Fedora 7 (June 10, 2007)">Installing Ruby on Rails on Fedora 7</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2007/04/26/why-you-should-install-ruby-on-rails-using-rubygems/" title="Why You Should Install Ruby On Rails using RubyGems (April 26, 2007)">Why You Should Install Ruby On Rails using RubyGems</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2007/05/23/why-i-support-free-culture/" title="Why I Support Free Culture (May 23, 2007)">Why I Support Free Culture</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2007/01/16/where-do-i-place-ruby-on-rails-generators/" title="Where do I place Ruby on Rails Generators? (January 16, 2007)">Where do I place Ruby on Rails Generators?</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.aizatto.com/2007/06/10/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-fedora-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby on Rails on Fedora 7</title>
		<link>http://blog.aizatto.com/2007/06/10/installing-ruby-on-rails-on-fedora-7/</link>
		<comments>http://blog.aizatto.com/2007/06/10/installing-ruby-on-rails-on-fedora-7/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 14:25:05 +0000</pubDate>
		<dc:creator>aizatto</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora 7]]></category>
		<category><![CDATA[Installing Ruby on Rails]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://rails.aizatto.com/2007/06/10/installing-ruby-on-rails-on-fedora-7/</guid>
		<description><![CDATA[This is a quick down and dirty guide to getting Ruby and Rails working in Fedora 7. You may notice this is installed into /tmp , I do this because its universal on all Fedora and Linux distributions. Install Ruby Install RubyGems via source Install Ruby on Rails using RubyGems Test Rails installation su - [...]]]></description>
			<content:encoded><![CDATA[<p class="block_important"><strong>Note:</strong> </p>
<ul>
<li><a href="http://rails.aizatto.com/2007/04/26/why-you-should-install-ruby-on-rails-using-rubygems/">I recommend installing Ruby on Rails via RubyGems</a></li>
<li>As long as you have Ruby installed, you can install Ruby on Rails, just skip the step about installing Ruby.</li>
<li>I have instructions if you are interested in <a href="http://rails.aizatto.com/category/installing-rails-on-ubuntu/">Installing Ruby On Rails on Ubuntu</a>.</li>
</ul>
<p> </p>
<h3>Plan of Attack</h3>

<p>This is a <strong>quick down and dirty guide</strong> to getting Ruby <em>and</em> Rails working in Fedora 7.  You may notice this is installed into <code>/tmp</code> <img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/script.png" alt="File" title="File" />, I do this because its universal on all Fedora and Linux distributions.</p>
<ul>
<li>Install Ruby</li>
<li>Install RubyGems via source</li>
<li>Install Ruby on Rails using RubyGems</li>
<li>Test Rails installation</li>
</ul>
<p class="block_warning"><strong>Warning:</strong> </p>
<ul>
<li>Certain commands need to be executed as root.  Lines requiring to be run as root, begin with a hash (<code>#</code>).  To enter root execute <code>su -</code> <img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/utilities-terminal.png" alt="Terminal" title="Terminal" />.</li>
<li>If a line begins with a dollar sign (<code>$</code>), those can be run as a normal user.</li>
<li>If a line begins with a hash or a dollar sign, <strong>do not enter the starting hash or dollar sign into the terminal</strong></li>
</ul>
<p> </p>
<h3>Install Ruby</h3>

<pre class="brush: plain; gutter: false;">su -
yum install ruby ruby-rdoc ruby-irb</pre>
<p class="block_important"><strong>Note:</strong> If you get an error, similar to the following, just wait a while and try the above command again.<br />
<pre class="block_terminal">Loading "installonlyn" plugin<br />
Existing lock /var/run/yum.pid: another copy is running as pid 2321. Aborting.</pre><br />
 </p>
<p class="block_important"><strong>Note:</strong> If you get something similar to the following, just enter <code>y</code>.<br />
<pre class="block_terminal">warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2<br />
Importing GPG key 0x4F2A6FD2 "Fedora Project " from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora<br />
Is this ok [y/N]:</pre><br />
 </p>
<h3>Install RubyGems via source</h3>

<p class="block_important"><strong>Note:</strong> Latest version of RubyGems (0.9.4) as of 10th June 2007.<br />
Enter into the Terminal: </p>
<pre class="brush: plain; gutter: false;">
cd /tmp
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
tar -zxvf rubygems-0.9.4.tgz
cd rubygems-0.9.4
ruby setup.rb
</pre>
<h3>Install Ruby on Rails using RubyGems</h3>

<p>Enter into the Terminal:</p>
<pre class="brush: plain; gutter: false;">gem install -y rails</pre>
<p class="block_important"><strong>Note:</strong> If it fails,  try executing <code>gem update</code> <img src="http://blog.aizatto.com/wp-content/plugins/aizatto_blocks/images/utilities-terminal.png" alt="Terminal" title="Terminal" /> and then execute the command above again. </p>
<h3>Test Rails installation</h3>

<p>Enter into the Terminal:</p>
<pre class="brush: plain; gutter: false;">
rails /tmp/railstest
cd /tmp/railstest
./script/server
</pre>
<p>Open up Firefox and go to <code><a href="http://localhost:3000">http://localhost:3000</a></code>, a page should show up indicating a successful installation. Your basically good to go with the minor exception of a database connection.</p>
<h3>After...</h3>

<p>Generally you'd want some sort of database connection, with the three standards choices being.</p>
<ul>
<li><a href="http://rails.aizatto.com/2007/06/10/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-fedora-7/">SQLite</a>:<br />
If you just want to experiment with Ruby on Rails, I'd recommend using SQLite.</li>
<li><a href="http://rails.aizatto.com/2007/05/15/setting-up-ruby-on-rails-database-connection-using-mysql-on-ubuntu-feisty-fawn/">MySQL</a></li>
<li>PostgreSQL</li>
</ul>
<p>Stay tuned!</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.aizatto.com/2007/06/10/setting-up-ruby-on-rails-database-connection-using-sqlite-version-2-and-3-on-fedora-7/" title="Setting up Ruby on Rails Database Connection using SQLite (version 2 and 3) on Fedora 7 (June 10, 2007)">Setting up Ruby on Rails Database Connection using SQLite (version 2 and 3) on Fedora 7</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2007/04/26/why-you-should-install-ruby-on-rails-using-rubygems/" title="Why You Should Install Ruby On Rails using RubyGems (April 26, 2007)">Why You Should Install Ruby On Rails using RubyGems</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2007/05/23/why-i-support-free-culture/" title="Why I Support Free Culture (May 23, 2007)">Why I Support Free Culture</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2007/01/16/where-do-i-place-ruby-on-rails-generators/" title="Where do I place Ruby on Rails Generators? (January 16, 2007)">Where do I place Ruby on Rails Generators?</a> (0)</li>
	<li><a href="http://blog.aizatto.com/2009/12/05/thisisbinding-launches/" title="thisisbinding Launches (December 5, 2009)">thisisbinding Launches</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.aizatto.com/2007/06/10/installing-ruby-on-rails-on-fedora-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
