Completed setup guide for Ubuntu

This commit is contained in:
Mitchell Hashimoto 2010-04-15 12:42:19 -07:00
parent 43417d29fd
commit e0de01762f
1 changed files with 21 additions and 2 deletions

View File

@ -4,15 +4,34 @@ title: Getting Started - Setting up Ubuntu
--- ---
# Ubuntu # Ubuntu
## Installing Ruby and RubyGems ## Installing Ruby
The easiest way to install Ruby and RubyGems is via Ubuntu's built The easiest way to install Ruby and RubyGems is via Ubuntu's built
in package manager: in package manager:
{% highlight bash %} {% 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 %} {% 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 You'll also want to verify that RubyGems is fully updated, since the
packages can often get out of date: packages can often get out of date: