« Is it all hype? | ^ Main | Rails Apps come as MVC »


Installing Ruby

It is official. I am now installing Ruby, as I type this post, after seeing a post on Jim’s blog about Rails 1.0. It is an old post from December but it made me go ahead and follow the link to the install page. Installing is quite simple too.

  1. Go to the download page
  2. Download the file (exe in my case)
  3. Run the installer
  4. Open the samples file and watch it run

I ran hello.rb which is the typical Hello World application for all languages. The only difference is for this one I didn’t know what I was looking at in the code. :-) Opening it in Wordpad caused it to be a online file and I didn’t take the time to actually read it.

The other nice part is installing RubyGems. It is so simple and painless.

  1. Download the zip (same download page)
  2. Extract
  3. Run setup.rb

Installing Rails wasn’t as easy as installing RubyGems or Ruby. I didn’t exactly know where to go to type the command line they give on the site.

gem install rails --include-dependencies

So I poked around in the Ruby folder and saw a /bin which contains a gem.cmd. So, I went ahead and opened my command prompt, changed directories to that folder and ran the command line. The sweetest part is I didn’t place the rails file in the proper location. That’s fine…it didn’t matter because the installer went online and grabbed it for me. How sweet is that!?!??!?!? I must say, this install is probably one of the easiest I have ever encountered for any type of server technology.

Here’s what my command line showed. I’ll highlight the sweet spot.

C:\Ruby\bin>gem install rails —include-dependencies
Attempting local installation of ‘rails’
Local gem file not found: rails*.gem
Attempting remote installation of ‘rails’
Updating Gem source index for: http://gems.rubyforge.org

Successfully installed rails-1.0.0
Successfully installed rake-0.7.0
Successfully installed activesupport-1.2.5
Successfully installed activerecord-1.13.2
Successfully installed actionpack-1.11.2
Successfully installed actionmailer-1.1.5
Successfully installed actionwebservice-1.0.0
Installing RDoc documentation for rake-0.7.0…
Installing RDoc documentation for activesupport-1.2.5…
Installing RDoc documentation for activerecord-1.13.2…
Installing RDoc documentation for actionpack-1.11.2…
Installing RDoc documentation for actionmailer-1.1.5…
Installing RDoc documentation for actionwebservice-1.0.0…

Posted by John C. Bland II on February 24, 2006 9:06 AM |

TrackBack

TrackBack URL for this entry:
http://mt.katapultmedia.com/mt-tb.cgi/49

Post a comment