Ruby on Rails in Ubuntu 7.10 (Gutsy)

So I’ve decided after a few months now to give Ruby on Rails a full go after my September debacle with Circle Hosting. Long story short I’ve just set it up in Ubuntu now. As I have previously stated, the more I use Ubuntu the more awesome it becomes.

It seems that ruby comes installed by default in Ubuntu 7.10 which was awesome. I quickly installed RubyGems and updated and installed the supporting documentation and within 2minutes it was ready. I kid you not, 2minutes and it was setup. Obviously I still to install mySql but getting Ruby on Rails installed was literally that quick in Ubuntu 7.10! I decided to just quickly share what I did to install RoR in Ubuntu so quick.

Open a terminal and execute the following commands::

1) sudo apt-get install ruby irb ri rdoc ruby1.8-dev2.2
2) sudo apt-get install rubygems
3) sudo gem update
4) sudo gem install rails –include-dependencies (thats two dashes in front of “include”, Wordpress seems to remove the second dash)

Thats it! 4 easy steps to Ruby on Rails in Ubuntu!

Posted under Ruby on Rails by StevenMcD on Friday 2 November 2007 at 8:36 pm

6 Comments »

  1. Pingback by stevenmcd.net » Blog Archive » Step by Step Intro to Ruby on Rails — November 11, 2007 @ 8:30 pm

    [...] using Ubuntu check out the following posts I have made regarding the installation of RoR and MySql: Ruby on Rails in Ubuntu 7.10 (Gutsy) Setting up MySql 5 in [...]

  2. Comment by Joe — November 21, 2007 @ 6:54 am

    Hey, that’s –include-dependencies.

    Kinda makes a mess without that other dash… :-)

    Thanks for the walkthrough!

  3. Comment by StevenMcD — November 21, 2007 @ 7:01 pm

    Thanks for spotting that man! will edit the post now.

  4. Comment by Slippy Lane — December 15, 2007 @ 5:56 pm

    Thanks for that. To install smoothly on my system, I had to make a couple minor simplifications. Dunno why.

    1) sudo apt-get install ruby irb ri rdoc
    2) sudo apt-get install rubygems
    3) sudo gem update
    4) sudo gem install rails

    ruby1.8 gets installed anyway as a prerequisite of rubygems and, for some reason, using –include-dependencies when installing rails makes it fall over with a 404 not found.

  5. Comment by Slippy Lane — December 15, 2007 @ 5:57 pm

    *ahem* I meant to say…
    …using (double dash)include-dependencies also falls over with a 404 on my machine

  6. Pingback by Installing Ruby on Rails on Ubuntu 7.10 Gutsy | Karin's Pensieve — February 20, 2008 @ 11:47 pm

    [...] it from stevenmcd.net. It [...]

RSS feed for comments on this post. TrackBack URI

Leave a comment