It's always easier if you download a prebuilt package appropriate to your distribution.
on Slackware ∞
I got a prebuilt package from www.linuxpackages.net To find it, I did a search for ruby and in my case I downloaded the Slackware 10.1 package for Ruby 1.8.2 (
on PCLinuxOS ∞
su apt-get install ruby
Or use the PCLinuxOS Control Center, run synaptic and install it from the list of applications.
Stuck with Windows? ∞
I had good experiences with the "one-click" Windows installer.
[http://rubyinstaller.sourceforge.net/ one-click windows installer] - ([http://rubyinstaller.rubyforge.org/wiki/wiki.pl wiki]) - ([http://rubyforge.org/frs/?group_id=167 download])
This name, of course, is completely wrong. Like most people, my Windows setup forced me to click twice to install this.. a mindblowing 200% effort difference. I've already written a formal complaint through my lawyer to the copyright holders of this term, but I keep being told to be patient, and to keep paying them in cash.
Installing rubygems ∞
RubyGems is often just called "gems" for short.
Assuming ruby is already working ok, installing gems is as easy as extracting the files and then launching a setup file inside:
su tar -zxvf rubygems-0.8.10.tgz cd rubygems-0.8.10 ruby setup.rb
Installing stuff using GEMS ∞
Say you want to install rails.
su gem install rails
Say yes a bunch of times, to also download and install rails' dependancies.. and that's it.
I also recommend:
su gem install rubygems-update update_rubygems
Troubleshooting rubygems ∞
ruby: No such file to load -- rubygems (LoadError)
The easiest and fastest thing to do may just be to nuke and completely reinstall ruby and rubygems from scratch. This is a really obnoxious error which happens when one of ruby or gems is installed and re-installed later, especially if one installation came from a download and the other from package management.