<?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>Software and Opinions &#187; ruby</title>
	<atom:link href="http://ianloic.com/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianloic.com</link>
	<description>from Ian McKellar</description>
	<lastBuildDate>Thu, 19 Nov 2009 22:05:43 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Ruby Gems in your home directory</title>
		<link>http://ianloic.com/2007/08/29/installing_ruby_gems_in_your_home_directory/</link>
		<comments>http://ianloic.com/2007/08/29/installing_ruby_gems_in_your_home_directory/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>Ian McKellar</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I've been playing with Ruby in my <a href="http://www.dreamhost.com/r.cgi?235928">cheap shared hosting provider</a>. They don't include everything I need so I had to install <a href="http://www.rubygems.org/">Ruby Gems</a> in my home directory. The <a href="http://www.rubygems.org/read/chapter/15#page101">instructions</a> don't work. So here's what I did...

First set up environment variables to tell Ruby and Gems where to find stuff:<code>
export GEM_HOME=$HOME/lib/ruby/gems/1.8
export RUBYLIB=$HOME/lib/ruby:/home/ian/lib/site_ruby/1.8
</code>

Download and unpack the Gems source (this is the version I downloaded, you should grab the <a href="http://rubyforge.org/frs/?group_id=126">latest</a>:<code>
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
tar xzvf rubygems-0.9.4.tgz
cd rubygems-0.9.4
</code>

Run the setup.rb script with the right arguments to install into your home directory:<code>
ruby setup.rb all --prefix=$HOME --siterubyver=$HOME/lib/site_ruby/1.8
</code>

This will install the gem command (and a couple of others) into <code>$HOME/bin</code> and the Gems source into <code>$HOME/lib/site_ruby</code>. Gems will be installed into <code>$HOME/lib/ruby/gems/1.8</code>. You should add <code>$HOME/bin</code> to your path. If you want to install it somewhere else replace <code>$HOME</code> with the prefix you'd like to use.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with Ruby in my <a href="http://www.dreamhost.com/r.cgi?235928">cheap shared hosting provider</a>. They don&#8217;t include everything I need so I had to install <a href="http://www.rubygems.org/">Ruby Gems</a> in my home directory. The <a href="http://www.rubygems.org/read/chapter/15#page101">instructions</a> don&#8217;t work. So here&#8217;s what I did&#8230;</p>
<p>First set up environment variables to tell Ruby and Gems where to find stuff:
<pre class="prettyprint">
export GEM_HOME=$HOME/lib/ruby/gems/1.8
export RUBYLIB=$HOME/lib/ruby:/home/ian/lib/site_ruby/1.8
</pre>
<p>Download and unpack the Gems source (this is the version I downloaded, you should grab the <a href="http://rubyforge.org/frs/?group_id=126">latest</a>:
<pre class="prettyprint">
wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
tar xzvf rubygems-0.9.4.tgz
cd rubygems-0.9.4
</pre>
<p>Run the setup.rb script with the right arguments to install into your home directory:
<pre class="prettyprint">
ruby setup.rb all --prefix=$HOME --siterubyver=$HOME/lib/site_ruby/1.8
</pre>
<p>This will install the gem command (and a couple of others) into <code>$HOME/bin</code> and the Gems source into <code>$HOME/lib/site_ruby</code>. Gems will be installed into <code>$HOME/lib/ruby/gems/1.8</code>. You should add <code>$HOME/bin</code> to your path. If you want to install it somewhere else replace <code>$HOME</code> with the prefix you&#8217;d like to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianloic.com/2007/08/29/installing_ruby_gems_in_your_home_directory/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
