<?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>Strong as an Ox &#187; ruby</title>
	<atom:link href="http://www.strongasanox.co.uk/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strongasanox.co.uk</link>
	<description>Ian Oxley - ASP.NET, PHP, JavaScript and Web Applications</description>
	<lastBuildDate>Tue, 24 Aug 2010 22:54:28 +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>Updating RubyGems on Ubuntu to Install Jekyll</title>
		<link>http://www.strongasanox.co.uk/2009/11/25/updating-rubygems-on-ubuntu-to-install-jekyll/</link>
		<comments>http://www.strongasanox.co.uk/2009/11/25/updating-rubygems-on-ubuntu-to-install-jekyll/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 23:10:05 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[jekyll]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=242</guid>
		<description><![CDATA[Having recently read about Jekyll I decided to boot up Ubuntu, install all the bits and pieces and give it a try. However, I fell at the first hurdle when greeted by the following error: Error installing gemcutter: gemcutter requires RubyGems version &#62;= 1.3.5 The Synaptic Package Manager reported everything as being up-to-date but only [...]]]></description>
			<content:encoded><![CDATA[<p>Having recently <a href="http://articles.sitepoint.com/article/jekyll-sites-made-simple">read about Jekyll</a> I decided to boot up Ubuntu, install all the bits and pieces and give it a try. However, I fell at the first hurdle when greeted by the following error:</p>
<blockquote>
<div>Error installing gemcutter:<br />
gemcutter requires RubyGems version &gt;= 1.3.5</div>
</blockquote>
<p>The Synaptic Package Manager reported everything as being <em>up-to-date</em> but only to version 1.3.1. As it turns out, there is another way to <a href="http://rudygems.com/post/164224985/update-rubygems-on-ubuntu">update rubygems on Ubuntu</a>, which worked a treat! The rest of the installation was a breeze <img src='http://www.strongasanox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If you are interested more info on Jekyll can be found on <a href="http://github.com/mojombo/jekyll">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2009/11/25/updating-rubygems-on-ubuntu-to-install-jekyll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E Text Editor and the ruby: no such file to load rubygems error</title>
		<link>http://www.strongasanox.co.uk/2009/07/06/e-text-editor-and-the-ruby-no-such-file-to-load-rubygems-error/</link>
		<comments>http://www.strongasanox.co.uk/2009/07/06/e-text-editor-and-the-ruby-no-such-file-to-load-rubygems-error/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:15:54 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[devtools]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[e text editor]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.strongasanox.co.uk/?p=101</guid>
		<description><![CDATA[So, you are using the e text editor and try to run a bundle only to be confronted with the following: ruby: no such file to load &#8212; ubygems (LoadError) ruby: no such file to load &#8212; ubygems (LoadError) After doing some digging it turns out the cause is the RUBYOPT=-rubygems environment variable that is [...]]]></description>
			<content:encoded><![CDATA[<p>So, you are using the <a href="http://www.e-texteditor.com/">e text editor</a> and try to run a bundle only to be confronted with the following:</p>
<blockquote><p>ruby: no such file to load &#8212; ubygems (LoadError) ruby: no such file to load &#8212; ubygems (LoadError)</p></blockquote>
<p>After doing some <a href="http://www.google.co.uk/search?q=ruby%3A+no+such+file+to+load+--+ubygems+%28LoadError%29+ruby%3A+no+such+file+to+load+--+ubygems+%28LoadError%29+&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a">digging</a> it turns out the cause is the <strong>RUBYOPT=-rubygems</strong> environment variable that is set by the <a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl?RubyInstaller">Windows one-click Ruby installer</a>. Now, if you have not got rubygems installed you might be able to get away with simply <a href="http://www.xerxesb.com/2009/e-text-editor-ruby-no-such-file-to-load-ubygems-loaderror/">unsetting the RUBYOPT environment variable</a> (although YMMV).</p>
<p>However, as e text editor makes use of Ruby via <a href="http://www.cygwin.com/">Cygwin</a>, another solution is to <a href="http://www.e-texteditor.com/forum/viewtopic.php?t=1091">modify your <strong>.bashrc</strong> file</a>:</p>
<blockquote>
<pre>Try this:</pre>
<pre>Go to the cygwin bash prompt.  If you don't know how to get there, use Start -&gt; Run -&gt; c:\cygwin\cygwin.bat.</pre>
<pre>Type:
echo unset RUBYOPT &gt;&gt; .bashrc</pre>
<pre>Type:
. .bashrc</pre>
<pre>Type:
irb</pre>
<pre>If you see:
irb(main):001:0&gt;</pre>
<pre>You should be good to go.</pre>
</blockquote>
<p>But what worked for me &#8211; and I don&#8217;t know whether this has anything to do with me having Ruby installed under Windows and under Cygwin &#8211; was making the same changes to .bashrc outlined above to my <strong>.profile</strong> script (so simply replace <em>.bashrc</em> with <em>.profile</em> in the quoted text above).</p>
<p>Hopefully at least one of these methods should work for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.strongasanox.co.uk/2009/07/06/e-text-editor-and-the-ruby-no-such-file-to-load-rubygems-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
