34,333
edits
Changes
no edit summary
== Installing Ruby on Linux ==
There are a number of different Linux distributions available today and it makes sense to install the Ruby package built specifically for your chosen Linux flavor. The best way to do this is to use the standard package manager for that particalur particular Linux.
=== Ruby on Red Hat Enterprise and Fedora Linux ===
Red Hat Enterprise Linux and Fedora Linux both use the ''YUM'' installation manager and the Red Hat Package Manager (''rpm''). The first step is to verify if Ruby is already installed. This can be achieved using the following rpm command. In this example, Ruby is not yet installed:
<pre>
</pre>
To install ruby, simply run the ''apt-get'' commandas instructed in the message:
<pre>
=== Ruby on Microsoft Windows ===
<google>ADSDAQBOX_FLOW</google>
By far the easiest way to install Ruby on Windows is to use something called the ''One-Click Ruby Installer''. This is an executable which, when run, performs the installation of Ruby onto a system. It also installs a mechanism by which Ruby may be easily removed from the system at a later date.
To use the ''One-Click Ruby Installer'' go to [http://rubyforge.org http://rubyforge.org], scroll down to the link to download the One-Click Installer and click on it. A second page will appear listing the various releases of the One-Click Installer. If you are feeling brave, choose the latest ''Release Candidate''. If you prefer something a little more tried and tested, select the the last non-release candidate download (for example, ruby186-26.exe).
Once the executable has downloaded, launch it as you would any other Windows application.
Another option is to launch the ''fxri'' tool from the Windows Start menu. This is an interactive tool which provides both access to the Ruby documentation and also the Ruby console for interactively entering Ruby code: