First, install Ruby under Linux
1-First, we want to get the latest Ruby release version (currently ruby-1.8.2.tar.gz).
Please download it to www.ruby-lang.org/en/20020102.html.
2-then decompression: TAR-ZXF ruby-1.8.2.tar.gz
3-Last Run:
./configure
Make
Make install
This is the basic Linux under the Software installation method:
4-ok, knock now: ruby-v
Is there a ruby version number, congratulations, you have successfully installed the ruby!
There are two ways to install Ruby in a Windows environment
1-Completely compile the installation from the source code
Is that we download the latest source code for the Ruby language, compile and install Ruby with VC or other C compiler.
But in fact, no trouble, already have netizens for us to compile, direct to http://www.garbagecollect.jp/ruby/mswin32/en/download.
It's best to set the $path path (like setting the JDK path) when you get back.
2-The simplest method (recommended!) )
Download One-click-installer directly from Http://rubyforge.org/projects/rubyinstaller, double-click to install, everything is done!
The software contains Ruby ontology, useful extensions (such as gems), a lot of documentation, and SciTE and freeride. Two very good Ides (and you can choose to install them).