From e0de01762fefedee54d3d0909f5809c6e80cd3c8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 15 Apr 2010 12:42:19 -0700 Subject: [PATCH] Completed setup guide for Ubuntu --- docs/getting-started/setup/ubuntu.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/docs/getting-started/setup/ubuntu.md b/docs/getting-started/setup/ubuntu.md index 686a50b7c..bd0646550 100644 --- a/docs/getting-started/setup/ubuntu.md +++ b/docs/getting-started/setup/ubuntu.md @@ -4,15 +4,34 @@ title: Getting Started - Setting up Ubuntu --- # Ubuntu -## Installing Ruby and RubyGems +## Installing Ruby The easiest way to install Ruby and RubyGems is via Ubuntu's built in package manager: {% highlight bash %} -$ sudo apt-get install +$ sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby wget +$ sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby +$ sudo ln -s /usr/bin/ri1.8 /usr/bin/ri +$ sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc +$ sudo ln -s /usr/bin/irb1.8 /usr/bin/irb {% endhighlight %} +## Installing RubyGems + +It is recommended that you install RubyGems from source. All the dependencies +for RubyGems were installed above already so installing from source is +fairly painless: + +{% highlight bash %} +$ cd ~ +$ wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz +$ tar xvzf rubygems-1.3.6.tgz +$ cd rubygems-1.3.6 +$ sudo ruby setup.rb +$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem +{% endhighlight bash %} + You'll also want to verify that RubyGems is fully updated, since the packages can often get out of date: