A quick guide to installing Ruby
Sunday, May 28, 2006
As a follow up to my last post, I have decided to post a quick noob guide on how to install Ruby, RubyGems, and Ruby on Rails.
To start off, download the latest version of Ruby (Ruby 1.8.4 is currently reccomended for Ruby on Rails). You can download Ruby (1.8.4) here. Once you have downloaded Ruby, unpack it using:
tar -xzvf ruby-1.8.4.tar.gz
Change to the created directory, and type the following:
./configure
Then, run make:
make
Then, run make install (you may have to be root to do so):
make install
And there you have it, Ruby is installed. Next, I will talk you through installing RubyGems, the standard Ruby package manager. First, you must download RubyGems. You can do so by clicking this link. Once again, unpack .tgz package:
tar -xzvf rubygems-0.8.11.tgz
Then, just run setup.rb (once again, as root if needed):
ruby setup.rb
Now RubyGems is installed. Next, we install Rails (Ruby on Rails). Ruby on Rails is "an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration" To install Rails, simply type the following:
gem install rails --include-dependencies
And there you have it, a complete Ruby setup with RubyGems and Rails! Congrats, now start programming! If you have errors installing any of the above, just leave a reply to this post and I will try to help. OR, use this link to get to the Ruby documentation pages. OR, use this link to get to the Ruby Forum.
To start off, download the latest version of Ruby (Ruby 1.8.4 is currently reccomended for Ruby on Rails). You can download Ruby (1.8.4) here. Once you have downloaded Ruby, unpack it using:
tar -xzvf ruby-1.8.4.tar.gz
Change to the created directory, and type the following:
./configure
Then, run make:
make
Then, run make install (you may have to be root to do so):
make install
And there you have it, Ruby is installed. Next, I will talk you through installing RubyGems, the standard Ruby package manager. First, you must download RubyGems. You can do so by clicking this link. Once again, unpack .tgz package:
tar -xzvf rubygems-0.8.11.tgz
Then, just run setup.rb (once again, as root if needed):
ruby setup.rb
Now RubyGems is installed. Next, we install Rails (Ruby on Rails). Ruby on Rails is "an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration" To install Rails, simply type the following:
gem install rails --include-dependencies
And there you have it, a complete Ruby setup with RubyGems and Rails! Congrats, now start programming! If you have errors installing any of the above, just leave a reply to this post and I will try to help. OR, use this link to get to the Ruby documentation pages. OR, use this link to get to the Ruby Forum.